Skip to main content

WorldTransformSystem Class Template

Updates world-space transforms from local position components. More...

Declaration

template <typename TMemberHandle> class helios::engine::scene::systems::WorldTransformSystem<TMemberHandle> { ... }

Public Member Typedefs Index

template <typename TMemberHandle>
usingEngineRoleTag = SystemRole

Runtime role tag used for system registration. More...

Public Member Functions Index

template <typename TMemberHandle>
voidupdate (UpdateContext &updateContext) noexcept

Executes one update pass over active transform tuples. More...

Description

Updates world-space transforms from local position components.

Template Parameters
TMemberHandle

ECS member handle type used by queried components.

Definition at line 33 of file WorldTransformSystem.ixx.

Public Member Typedefs

EngineRoleTag

template <typename TMemberHandle>
using helios::engine::scene::systems::WorldTransformSystem< TMemberHandle >::EngineRoleTag = SystemRole

Runtime role tag used for system registration.

Definition at line 40 of file WorldTransformSystem.ixx.

Public Member Functions

update()

template <typename TMemberHandle>
void helios::engine::scene::systems::WorldTransformSystem< TMemberHandle >::update (UpdateContext & updateContext)
inline noexcept

Executes one update pass over active transform tuples.

For each active entity, the world transform translation is updated only when the local position component is marked dirty.

Parameters
updateContext

Frame-local update context with ECS access.

Definition at line 50 of file WorldTransformSystem.ixx.

51
52
58 >().whereEnabled()) {
59
60 if (localPosition->isDirty()) {
61 worldTransform->setValue(worldTransform->value().withTranslation(localPosition->value()));
62 }
63
64 }
65
66 }

Reference helios::engine::scene::registerComponents.


The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.