Objects::Components::Transform
Transform Structure in Unified Engine
In Unified Engine
, the Transform
structure is essential for defining the position, rotation, and scale of game objects in 3D space. It provides a uniform way to manipulate the appearance and orientation of objects within the game world.
Structure Properties
The properties that encapsulate the transformation attributes for an entity.
struct Transform{
glm::vec3 Position = glm::vec3(0.f);
glm::vec3 Rotation = glm::vec3(0.f);
glm::vec3 Scale = glm::vec3(1.f);
};
Last updated