components Folder
Files Index
| file | helios/engine/modules/spatial/transform/components/_module.ixx |
|
Aggregate module for helios::engine::modules::spatial::transform::components namespace. More... | |
| file | ComposeTransformComponent.ixx |
|
Component for managing local and world transformations of a GameObject. More... | |
| file | RotationStateComponent.ixx |
|
Component for managing composite rotation state from heading and spin. More... | |
| file | ScaleStateComponent.ixx |
|
Component for managing the dimensions of an entity. More... | |
| file | TranslationStateComponent.ixx |
|
Component for storing the current translation (position) state of an entity. More... | |
Description
helios::engine::modules::spatial::transform::components
Transform state components for spatial management.
This namespace contains components that store individual aspects of an entity's spatial state. These are composed by transform systems to produce final world transforms.
Components
| Component | Description |
|---|---|
| ComposeTransformComponent | Local/world transform matrices with dirty tracking. |
| ScaleStateComponent | Entity dimensions (width, height, depth) with unit. |
| TranslationStateComponent | Current position/translation vector. |
Usage
Transform components are composed by the transform systems:
auto& transform = gameObject.add<ComposeTransformComponent>();
auto& scale = gameObject.add<ScaleStateComponent>(1.0f, 1.0f, 1.0f, Unit::Meter);
auto& translation = gameObject.add<TranslationStateComponent>();
translation.setTranslation({0.0f, 0.0f, -5.0f});
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.