class MAGES::RigidBodyAnimation::RigidbodyMoveDualQuat

Overview

RigidbodyMoveToTarget with Dual Quaternions. More…

class RigidbodyMoveDualQuat: public MAGES::RigidBodyAnimation::IRigidBodyAnimation
{
public:
    // properties

    GameObject Target;
    GameObject RigidbodyTransformObj;
    float Speed;

    // methods

    RigidbodyMoveDualQuat(
        GameObject target,
        GameObject thisGameobject,
        float speed,
        bool forceStart = false
    );

    void Restart(Vector3 newTargetPos, Quaternion newTargetRot);
    bool IsFinished();
    void Start();
    void Stop();
    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 Target

Gets or sets target to Translate to.

GameObject RigidbodyTransformObj

Gets or sets the object to be translated.

float Speed

Gets or sets translation speed.

Methods

RigidbodyMoveDualQuat(
    GameObject target,
    GameObject thisGameobject,
    float speed,
    bool forceStart = false
)

Initializes a new instance of the RigidbodyMoveDualQuat class.

Parameters:

target

Target object.

thisGameobject

Interpolated object.

speed

Interpolation speed.

forceStart

Start immediately.

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.

void Start()

Starts the animation.

void Stop()

Stops the animation.

void UpdateRigidBodyAnimation()

Updates the rigid body animation.