|
Muto 0.0.1
|
Component that holds the transform of an entity. More...
#include <Components.h>
Public Member Functions | |
| glm::mat4 | GetTransform () const |
| Calculates and returns the transformation matrix. | |
| TransformComponent ()=default | |
| TransformComponent (const glm::vec3 &translation) | |
| Constructor that initializes the translation with a 3D vector. | |
| TransformComponent (const TransformComponent &)=default | |
Public Attributes | |
| glm::vec3 | Rotation = { 0.0f, 0.0f, 0.0f } |
| Rotation vector (in radians). | |
| glm::vec3 | Scale = { 1.0f, 1.0f, 1.0f } |
| Scale vector. | |
| glm::vec3 | Translation = { 0.0f, 0.0f, 0.0f } |
| Translation (position) vector. | |
Component that holds the transform of an entity.
|
default |
|
default |
|
inline |
Constructor that initializes the translation with a 3D vector.
References TransformComponent().
Referenced by TransformComponent().
|
inline |
| glm::vec3 Muto::TransformComponent::Rotation = { 0.0f, 0.0f, 0.0f } |
Rotation vector (in radians).
| glm::vec3 Muto::TransformComponent::Scale = { 1.0f, 1.0f, 1.0f } |
Scale vector.
| glm::vec3 Muto::TransformComponent::Translation = { 0.0f, 0.0f, 0.0f } |
Translation (position) vector.