Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 413 Bytes

transform.md

File metadata and controls

21 lines (14 loc) · 413 Bytes

Component that provides the entity's position and size.

Members

bounding_box

putils::rect3f bounding_box{ { 0.f, 0.f, 0.f }, { 1.f, 1.f, 1.f } };

The Entity's position is stored as bounding_box.position, and its scale as bounding_box.size.

pitch, yaw, roll

float pitch = 0; // Radians
float yaw = 0; // Radians
float roll = 0; // Radians