11 mScale{ 1.0f, 1.0f, 1.0f },
glm::vec3 GetRight() const
Returns the right (local Y+) direction vector in world space.
void UpdateWorldMatrix()
Updates the world transformation matrix from the current position, rotation, and scale.
const glm::mat4 & GetWorldMatrix() const
Returns the world transformation matrix (model matrix).
void SetRotation(const glm::quat &rotation)
Sets the rotation using a quaternion.
SceneComponent()
Constructs a SceneComponent with default transform (origin, identity rotation, unit scale).
void SetPosition(const glm::vec3 &position)
Sets the position of the component in world space.
glm::vec3 GetForward() const
Returns the forward (local X+) direction vector in world space.
void SetScale(const glm::vec3 &scale)
Sets the scale for each dimension.
glm::vec3 GetUp() const
Returns the up (local Z+) direction vector in world space.
static const glm::vec3 UpVector
static const glm::vec3 RightVector
static const glm::vec3 ForwardVector