Skip to main content

WorldBoundsUpdateSystem.ixx File

System that updates world-space bounds from local bounds and world transform. More...

Included Headers

Namespaces Index

namespacehelios
namespaceengine
namespacescene
namespacesystems

Classes Index

classWorldBoundsUpdateSystem<TMemberHandle>

Updates world-space bounds for active entities. More...

Description

System that updates world-space bounds from local bounds and world transform.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7
8export module helios.engine.spatial.systems.WorldBoundsUpdateSystem;
9
10import helios.engine.runtime.world.tags.SystemRole;
11
12import helios.engine.runtime.world.UpdateContext;
13
14import helios.ecs.components;
15import helios.engine.spatial.components;
16
17
18import helios.math;
19import helios.engine.core.types.ComponentTypeTags;
20
21using namespace helios::engine::core::types;
22using namespace helios::ecs::components;
26export namespace helios::engine::scene::systems {
27
33 template<typename TMemberHandle>
35
36 public:
37
42
52
53
59 >().withActive()
60 .template whereAnyDirty<
64 >()
65 ) {
66
67 entity.setTrackedValue(boundsWorld, boundsLocal->value().applyTransform(worldTransform->value()));
68
69 }
70
71 }
72
73
74 };
75}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.