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 { ... }

Public Member Typedefs Index

usingEngineRoleTag = helios::engine::common::tags::SystemRole

Public Member Functions Index

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

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 54 of file BoundsUpdateSystem.ixx.

Public Member Typedefs

EngineRoleTag

using helios::engine::modules::physics::collision::systems::BoundsUpdateSystem::EngineRoleTag = helios::engine::common::tags::SystemRole

Public Member Functions

update()

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

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 70 of file BoundsUpdateSystem.ixx.

Reference helios::engine::modules::physics::collision::Bounds::computeWorldAabb.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.