class MAGES::RigidBodyAnimation::RigidbodyMoveAndRotatePGA¶
Overview¶
RigidbodyMoveToTarget with projective geometric algebra motors. More…
class RigidbodyMoveAndRotatePGA: public MAGES::RigidBodyAnimation::IRigidBodyAnimation { public: // properties GameObject RigidbodyTransformObj; float Speed; // methods RigidbodyMoveAndRotatePGA( Vector3 newTargetPos, Quaternion newTargetRot, GameObject thisGameobject, float animationTime, bool useLocalTransform = false, 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 projective geometric algebra motors.
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¶
RigidbodyMoveAndRotatePGA(
Vector3 newTargetPos,
Quaternion newTargetRot,
GameObject thisGameobject,
float animationTime,
bool useLocalTransform = false,
bool forceStart = false
)
Initializes a new instance of the RigidbodyMoveAndRotatePGA class.
Parameters:
newTargetPos |
New target position. |
newTargetRot |
New target rotation. |
thisGameobject |
The gameobject to move. |
animationTime |
Interpolation time. |
useLocalTransform |
Whether local transform values should be applied. |
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.