Kale
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Kale::Transformable Class Reference

#include <Transformable.hpp>

+ Inheritance diagram for Kale::Transformable:

Public Member Functions

Transform getFullTransform () const
 

Public Attributes

std::optional< StateAnimatable< Transform > > transformFSM
 
Transform transform
 

Protected Member Functions

void updateTransform (float deltaTime)
 

Protected Attributes

std::optional< TransformstateTransform
 

Detailed Description

All transformable nodes must inherit from this class. Inheritance from this class is required for synchronized access to transformation matrices across threads & for usage from the animation system.

Definition at line 32 of file Transformable.hpp.

Member Function Documentation

◆ getFullTransform()

Transform Transformable::getFullTransform ( ) const

Gets the full transform including FSM based transformations

Returns
the full transform including FSM based transformations

Definition at line 48 of file Transformable.cpp.

◆ updateTransform()

void Transformable::updateTransform ( float deltaTime)
protected

Updates the transform depending on state node animations

Parameters
deltaTimeThe duration of the last frame in microseconds

Definition at line 25 of file Transformable.cpp.

Member Data Documentation

◆ stateTransform

std::optional<Transform> Kale::Transformable::stateTransform
protected

The transform produced from the FSM

Definition at line 44 of file Transformable.hpp.

◆ transform

Transform Kale::Transformable::transform

The transformation matrix of this object

Definition at line 57 of file Transformable.hpp.

◆ transformFSM

std::optional<StateAnimatable<Transform> > Kale::Transformable::transformFSM

The FSM used for transform states. Transformables support FSM based animations, to use the FSM simply set the value of this optional and fill the map. Access to the FSM must be externally synchronized if done from multiple threads.

Definition at line 52 of file Transformable.hpp.


The documentation for this class was generated from the following files: