interface MAGES::RigidBodyAnimation::IRigidBodyAnimation¶
Overview¶
Represents an interface for rigid body animations. More…
interface IRigidBodyAnimation { // properties GameObject RigidbodyTransformObj; float Speed; // methods void UpdateRigidBodyAnimation(); void Stop(); void Start(); void Restart(Vector3 newTargetPos, Quaternion newTargetRot); bool IsFinished(); }; // direct descendants class RigidbodyMoveAndRotateDualQuat; class RigidbodyMoveAndRotateDualQuatLocal; class RigidbodyMoveDualQuat; class RigidbodyMoveToTarget; class RigidbodyMoveToTargetLocal; class RigidbodyRotateTo;
Detailed Documentation¶
Represents an interface for rigid body animations.
Properties¶
GameObject RigidbodyTransformObj
Gets or sets the game object representing the rigid body’s transform.
float Speed
Gets or sets the speed of the animation.
Methods¶
void UpdateRigidBodyAnimation()
Updates the rigid body animation.
void Stop()
Stops the animation.
void Start()
Starts the animation.
void Restart(Vector3 newTargetPos, Quaternion newTargetRot)
Restarts the animation.
Parameters:
newTargetPos |
Target position. |
newTargetRot |
Target rotation. |
bool IsFinished()
Checks if the animation has finished.
Returns:
True if the animation has finished, false otherwise.