class MAGES::RigidBodyAnimation::RigidbodyMoveAndRotateCGA

Overview

RigidbodyMoveToTarget with conformal geometric algebra multivectors. More…

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

    GameObject RigidbodyTransformObj;
    float Speed;

    // methods

    RigidbodyMoveAndRotateCGA(
        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 conformal geometric algebra multivectors.

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

RigidbodyMoveAndRotateCGA(
    Vector3 newTargetPos,
    Quaternion newTargetRot,
    GameObject thisGameobject,
    float animationTime,
    bool useLocalTransform = false,
    bool forceStart = false
)

Initializes a new instance of the RigidbodyMoveAndRotateCGA 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.