![]() |
Kale
|
#include <Transformable.hpp>
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< Transform > | stateTransform |
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.
Transform Transformable::getFullTransform | ( | ) | const |
Gets the full transform including FSM based transformations
Definition at line 48 of file Transformable.cpp.
|
protected |
Updates the transform depending on state node animations
deltaTime | The duration of the last frame in microseconds |
Definition at line 25 of file Transformable.cpp.
|
protected |
The transform produced from the FSM
Definition at line 44 of file Transformable.hpp.
Transform Kale::Transformable::transform |
The transformation matrix of this object
Definition at line 57 of file Transformable.hpp.
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.