Skip to main content

BoundsUpdateSystem Class

System that updates AABB colliders based on entity transforms. More...

Declaration

class helios::engine::modules::physics::collision::systems::BoundsUpdateSystem { ... }

Base class

classSystem

Abstract base class for game systems. More...

Public Member Functions Index

voidupdate (helios::engine::runtime::world::UpdateContext &updateContext) noexcept override

Updates collider bounds for all applicable entities. More...

Description

System that updates AABB colliders based on entity transforms.

This system recalculates the world-space AABB for entities by transforming the canonical model AABB through the composed local transform (Translation * Rotation * Scale) and the parent's world transform.

Required components:

  • ModelAabbComponent (source canonical AABB)
  • SceneNodeComponent (for parent world transform)
  • TranslationStateComponent (local translation)
  • ScaleStateComponent (local scaling)
  • RotationStateComponent (local rotation)
  • AabbColliderComponent (receives the updated world-space AABB)
See Also

helios::engine::modules::physics::collision::Bounds::computeWorldAabb()

Definition at line 52 of file BoundsUpdateSystem.ixx.

Public Member Functions

update()

void helios::engine::modules::physics::collision::systems::BoundsUpdateSystem::update (helios::engine::runtime::world::UpdateContext & updateContext)
inline noexcept virtual

Updates collider bounds for all applicable entities.

For each entity with the required components, composes the local transform from translation, rotation, and scale, then applies the parent world transform to compute the final world-space AABB.

Parameters
updateContext

Context containing deltaTime and other frame data.

Definition at line 66 of file BoundsUpdateSystem.ixx.

References helios::engine::modules::physics::collision::Bounds::computeWorldAabb and helios::engine::ecs::System::gameWorld_.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.