Represents the transformation component of an entity. More...
#include <components.hpp>
Public Member Functions | |
| glm::vec3 | GetUpVector () const |
| Gets the up vector of the transformation. | |
| glm::vec3 | GetRightVector () const |
| Gets the right vector of the transformation. | |
| glm::vec3 | GetForwardVector () const |
| Gets the forward vector of the transformation. | |
| TransformComponent () | |
| Default constructor initializing transformation parameters. | |
| TransformComponent (const glm::vec3 &pos, const glm::vec3 &rot, const glm::vec3 &sca) | |
| Constructor initializing with position, rotation, and scale. | |
| void | Update () |
| Updates the transformation matrix. | |
Public Attributes | |
| glm::vec3 | position |
| glm::vec3 | rotation |
| glm::vec3 | scale |
| glm::mat4 | transform |
Represents the transformation component of an entity.
Definition at line 36 of file components.hpp.
|
inline |
Default constructor initializing transformation parameters.
Definition at line 68 of file components.hpp.
|
inline |
Constructor initializing with position, rotation, and scale.
| pos | Initial position. |
| rot | Initial rotation. |
| sca | Initial scale. |
Definition at line 75 of file components.hpp.
|
inline |
Gets the forward vector of the transformation.
Definition at line 61 of file components.hpp.
|
inline |
Gets the right vector of the transformation.
Definition at line 53 of file components.hpp.
|
inline |
Gets the up vector of the transformation.
Definition at line 46 of file components.hpp.
|
inline |
Updates the transformation matrix.
Definition at line 80 of file components.hpp.
| glm::vec3 Raftel::TransformComponent::position |
Position of the entity.
Definition at line 37 of file components.hpp.
| glm::vec3 Raftel::TransformComponent::rotation |
Rotation of the entity.
Definition at line 38 of file components.hpp.
| glm::vec3 Raftel::TransformComponent::scale |
Scale of the entity.
Definition at line 39 of file components.hpp.
| glm::mat4 Raftel::TransformComponent::transform |
Transformation matrix.
Definition at line 40 of file components.hpp.