WorldBoundsUpdateSystem.ixx File
System that updates world-space bounds from local bounds and world transform. More...
Included Headers
#include <helios.engine.core.types.ComponentTypeTags>
#include <helios.engine.spatial.components>
#include <helios.ecs.components>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.math>
#include <helios.engine.runtime.world.tags.SystemRole>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | scene |
| namespace | systems |
Classes Index
| class | WorldBoundsUpdateSystem<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:
21using namespace helios::engine::core::types;
23using namespace helios::engine::spatial::components;
24using namespace helios::engine::runtime::world;
25using namespace helios::engine::runtime::world::tags;
26export namespace helios::engine::scene::systems {
34 class WorldBoundsUpdateSystem {
41 using EngineRoleTag = TypedSystemRole;
51 void update(UpdateContext& updateContext) noexcept {
54 for (auto [entity, boundsLocal, boundsWorld, worldTransform] : updateContext.view<
55 TMemberHandle,
59 >().withActive()
60 .template whereAnyDirty<
67 entity.setTrackedValue(boundsWorld, boundsLocal->value().applyTransform(worldTransform->value()));
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.