Skip to main content

components Folder

Files Index

filehelios/engine/modules/spatial/transform/components/_module.ixx

Aggregate module for helios::engine::modules::spatial::transform::components namespace. More...

fileComposeTransformComponent.ixx

Component for managing local and world transformations of a GameObject. More...

fileRotationStateComponent.ixx

Component for managing composite rotation state from heading and spin. More...

fileScaleStateComponent.ixx

Component for managing the dimensions of an entity. More...

fileTranslationStateComponent.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

ComponentDescription
ComposeTransformComponentLocal/world transform matrices with dirty tracking.
ScaleStateComponentEntity dimensions (width, height, depth) with unit.
TranslationStateComponentCurrent 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.