Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::TransformComponent Struct Reference

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.

Detailed Description

Stores position, rotation, and scale of an entity.

Provides a utility to get the full transformation matrix.

Member Function Documentation

◆ GetTransform()

Crux::mat4 Raven::TransformComponent::GetTransform ( ) const
inline

Computes the local transform matrix combining translation, rotation, and scale.

Returns
Crux::mat4 The combined transformation matrix.

Member Data Documentation

◆ Rotation

Crux::vec3 Raven::TransformComponent::Rotation {0.0f, 0.0f, 0.0f}

Rotation in radians (XYZ order)

◆ Scale

Crux::vec3 Raven::TransformComponent::Scale {1.0f, 1.0f, 1.0f}

Scale factors.

◆ Translation

Crux::vec3 Raven::TransformComponent::Translation {0.0f, 0.0f, 0.0f}

Position in world space.


The documentation for this struct was generated from the following file: