WorldTransformSystem.ixx File
System that propagates local position changes to world transforms. More...
Included Headers
#include <helios.engine.core.types.ComponentTypeTags>
#include <helios.engine.spatial.components>
#include <helios.ecs.components>
#include <helios.math>
#include <helios.engine.runtime.world.UpdateContext>
#include <helios.engine.runtime.world.tags.SystemRole>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | scene |
| namespace | systems |
Classes Index
| class | WorldTransformSystem<TMemberHandle> |
|
Updates world-space transforms from local position components. More... | |
Description
System that propagates local position changes to world transforms.
File Listing
The file content with the documentation metadata removed is:
20using namespace helios::engine::core::types;
22using namespace helios::engine::spatial::components;
23using namespace helios::engine::runtime::world;
24using namespace helios::engine::runtime::world::tags;
25export namespace helios::engine::scene::systems {
33 class WorldTransformSystem {
40 using EngineRoleTag = TypedSystemRole;
50 void update(UpdateContext& updateContext) noexcept {
54 entity,
55 localPosition,
56 localRotation,
57 worldTransform,
58 active] : updateContext.view<
59 TMemberHandle,
64 >().whereEnabled()) {
66 if (localPosition->isDirty() || localRotation->isDirty()) {
67 worldTransform->setValue(
68 localRotation->value().rotationMatrix().withTranslation(localPosition->value())
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.