class MAGES::RigidBodyAnimation::RigidbodyMoveAndRotateDualQuat¶
Overview¶
RigidbodyMoveToTarget with Dual Quaternions. More…
class RigidbodyMoveAndRotateDualQuat: public MAGES::RigidBodyAnimation::IRigidBodyAnimation { public: // properties GameObject RigidbodyTransformObj; float Speed; // methods RigidbodyMoveAndRotateDualQuat( Vector3 newTargetPos, Quaternion newTargetRot, GameObject thisGameobject, float newAnimationTime, bool forceStart = false ); bool IsFinished(); void Start(); void Stop(); void Restart(Vector3 newTargetPos, Quaternion newTargetRot); void UpdateRigidBodyAnimation(); };
Inherited Members¶
public: // properties GameObject RigidbodyTransformObj; float Speed; // methods void UpdateRigidBodyAnimation(); void Stop(); void Start(); void Restart(Vector3 newTargetPos, Quaternion newTargetRot); bool IsFinished();
Detailed Documentation¶
RigidbodyMoveToTarget with Dual Quaternions.
Properties¶
GameObject RigidbodyTransformObj
Gets or Sets the object to be translated.
float Speed
Gets or sets translation speed.
Methods¶
RigidbodyMoveAndRotateDualQuat( Vector3 newTargetPos, Quaternion newTargetRot, GameObject thisGameobject, float newAnimationTime, bool forceStart = false )
Initializes a new instance of the RigidbodyMoveAndRotateDualQuat class. Constructor.
Parameters:
newTargetPos |
New target position. |
newTargetRot |
New target rotation. |
thisGameobject |
The gameobject to move. |
newAnimationTime |
Interpolation time. |
forceStart |
Start immediately. |
bool IsFinished()
Checks if the animation has finished.
Returns:
True if the animation has finished, false otherwise.
void Start()
Starts the animation.
void Stop()
Stops the animation.
void Restart(Vector3 newTargetPos, Quaternion newTargetRot)
Restarts the animation.
Parameters:
newTargetPos |
Target position. |
newTargetRot |
Target rotation. |
void UpdateRigidBodyAnimation()
Updates the rigid body animation.