![]() |
Raven Engine v0.1
|
Stores position, rotation, and scale of an entity. More...
#include <Components.h>
Public Member Functions | |
| Crux::mat4 | GetTransform () const |
| Computes the local transform matrix combining translation, rotation, and scale. | |
Public Attributes | |
| Crux::vec3 | Translation {0.0f, 0.0f, 0.0f} |
| Position in world space. | |
| Crux::vec3 | Rotation {0.0f, 0.0f, 0.0f} |
| Rotation in radians (XYZ order) | |
| Crux::vec3 | Scale {1.0f, 1.0f, 1.0f} |
| Scale factors. | |
Stores position, rotation, and scale of an entity.
Provides a utility to get the full transformation matrix.
|
inline |
Computes the local transform matrix combining translation, rotation, and scale.
| Crux::vec3 Raven::TransformComponent::Rotation {0.0f, 0.0f, 0.0f} |
Rotation in radians (XYZ order)
| Crux::vec3 Raven::TransformComponent::Scale {1.0f, 1.0f, 1.0f} |
Scale factors.
| Crux::vec3 Raven::TransformComponent::Translation {0.0f, 0.0f, 0.0f} |
Position in world space.