class AnimationComponent

Animation component class.

File location: framework/cauldron/framework/inc/core/components/animationcomponent.h

Construction

Return type

Description

Constructor.

Methods

Return type

Description

void

SetLocalTransform (const Mat4 & transform)
Sets the component’s local transform (Animated transform for frame).

Mat4

Gets the component’s local transform (Animated transform for frame).

const AnimationComponentData *

GetData () const
Gets the component’s animation data.

void

Update (double deltaTime)
Component update. Process rigid body animation for frame.

Detailed description

Animation component class. Implements animation functionality on an entity.

Construction

AnimationComponent

Copied!

AnimationComponent (
    Entity * pOwner,
    ComponentData * pData,
    AnimationComponentMgr * pManager
)

Constructor.


Methods

SetLocalTransform

Copied!

void SetLocalTransform (const Mat4 & transform)

Sets the component’s local transform (Animated transform for frame).


GetLocalTransform

Copied!

Mat4  GetLocalTransform ()

Gets the component’s local transform (Animated transform for frame).


GetData

Copied!

const AnimationComponentData * GetData () const

Gets the component’s animation data.


Update

Copied!

virtual void Update (double deltaTime)

Component update. Process rigid body animation for frame.