EntityTransform struct
#include <Editor/Private/EntityTransform.h>
An entity's position, rotation, and scale fields, and its mesh's box: what the viewport's tools read and move. Read from the write frame (the edit world is paused).
Public functions
- auto Read(Registry& registry, EntityHandle entity) -> bool
- False if the entity is gone or has no position.
- void Values(float position[3], float rotation[4], float scale[3]) const
- void Bounds(float centre[3], float half[3]) const
- The world-axis box of its scaled mesh box, rotation left out.
- void Corners(float corners[8][3]) const
- The eight corners of its mesh box, scaled, rotated, and placed.
Public variables
- EntityHandle Entity
- uint32_t CacheIndex
- TransformField Position
- TransformField Rotation
- x, y, z, w
- TransformField Scale
- float Low
- the mesh's box, before scale
- float High