CORGI
An open source project by
FPL.
|
Holds all transform data for Entities, such as position, scale, and orientation. More...
#include <transform.h>
Holds all transform data for Entities, such as position, scale, and orientation.
Public Member Functions | |
TransformData () | |
The default constructor for TransformData. | |
TransformData & | operator= (TransformData &&other) |
Move assignment operator for the TransformData. More... | |
TransformData (TransformData &&other) | |
Move constructor for the TransformData. More... | |
mathfu::mat4 | GetTransformMatrix () |
Construct the transform matrix from the reotation, scale, and translation. More... | |
Public Attributes | |
mathfu::vec3 | position |
The position of this Entity. | |
mathfu::vec3 | scale |
The scale of the Entity. | |
mathfu::quat | orientation |
The orientation of the Entity. | |
mathfu::mat4 | world_transform |
The transform to place the Entity in world space. | |
corgi::EntityRef | owner |
An EntityRef reference to the Entity that owns this Component data. | |
corgi::EntityRef | parent |
An EntityRef reference to the parent Entity. | |
std::set< std::string > | child_ids |
A set of std::string child IDs that will need to be exported. | |
std::vector< std::string > | pending_child_ids |
Child IDs we will be linking up on the next update; we couldn't link them before because they may not have been loaded. | |
fplutil::intrusive_list_node | child_node |
The node inside the intrusive list for this Entity. | |
fplutil::intrusive_list < TransformData > | children |
The intrusive list of this Entity's children. | |
|
inline |
Move constructor for the TransformData.
[in] | other | The other TransformData whose contents should be moved into this TransformData. |
|
inline |
Construct the transform matrix from the reotation, scale, and translation.
|
inline |
Move assignment operator for the TransformData.
[in] | other | The other TransformData whose contents should be moved into this TransformData. |