class MAGES::RigidBodyAnimation::RigidbodyMoveAndRotateDualQuatLocal¶
Overview¶
RigidbodyMoveToTarget with Dual Quaternions. With Local Transforms!. More…
class RigidbodyMoveAndRotateDualQuatLocal: public MAGES::RigidBodyAnimation::IRigidBodyAnimation { public: // properties GameObject RigidbodyTransformObj; float Speed; // methods RigidbodyMoveAndRotateDualQuatLocal( Vector3 newTargetPos, Quaternion newTargetRot, GameObject thisGameobject, float animationTime, 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. With Local Transforms!.
Properties¶
GameObject RigidbodyTransformObj
Gets or sets the object to be translated.
float Speed
Gets or sets translation speed.
Methods¶
RigidbodyMoveAndRotateDualQuatLocal( Vector3 newTargetPos, Quaternion newTargetRot, GameObject thisGameobject, float animationTime, bool forceStart = false )
Initializes a new instance of the RigidbodyMoveAndRotateDualQuatLocal class. Constructor.
Parameters:
newTargetPos |
New target position. |
newTargetRot |
New target rotation. |
thisGameobject |
The gameobject to move. |
animationTime |
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 |
New target position. |
newTargetRot |
New target rotation. |
void UpdateRigidBodyAnimation()
Updates the rigid body animation.