ScaleSystem Class
System that applies scaling to entities based on their ScaleStateComponent. More...
Declaration
Public Member Typedefs Index
| using | EngineRoleTag = helios::engine::common::tags::SystemRole |
Public Member Functions Index
| void | update (helios::engine::runtime::world::UpdateContext &updateContext) noexcept |
|
Updates scale for all entities with dirty ScaleComponents. More... | |
Description
System that applies scaling to entities based on their ScaleStateComponent.
This system converts the desired world-space dimensions from ScaleStateComponent into scale factors relative to the model's original AABB. It handles unit conversion (e.g., centimeters to meters) based on the ScaleStateComponent's unit.
Required components:
- ScaleStateComponent (desired dimensions and unit)
- ModelAabbComponent (original model bounds)
- ComposeTransformComponent (receives scale updates)
Definition at line 44 of file ScaleSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Definition at line 49 of file ScaleSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Updates scale for all entities with dirty ScaleComponents.
For each entity with the required components, calculates the scale factor needed to resize the model from its original dimensions to the desired world-space dimensions.
- Parameters
-
updateContext Context containing deltaTime and other frame data.
Definition at line 59 of file ScaleSystem.ixx.
Reference helios::core::units::from.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.