Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.33 KB

File metadata and controls

45 lines (29 loc) · 1.33 KB

Component providing graphical information about a "model" file (be it a 3D model, a 2D sprite or any other form of renderable element).

Entities with this Component are sometimes referred to as "model Entities". They hold flyweight-style data about all Entities using the model.

Specs

Members

file

putils::string<KENGINE_MODEL_STRING_MAX_LENGTH> file;

The model file this component describes.

The maximum length of a filename (stored as a putils::string) defaults to 64, and can be adjusted by defining the KENGINE_MODEL_STRING_MAX_LENGTH macro.

boundingBox

putils::Rect3f boundingBox = { {}, { 1, 1, 1 } };

Defines the offset and scale to be applied to the model.

pitch, yaw, roll

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

mirrored

bool mirrored = false;