YawPitchRollUpdateSystem Class Template
Updates Rotation3DComponent<..., Local> from YawPitchRollComponent. More...
Declaration
Public Member Typedefs Index
template <typename TMemberHandle> | |
| using | EngineRoleTag = TypedSystemRole |
|
Runtime role tag used for system registration. More... | |
Public Member Functions Index
template <typename TMemberHandle> | |
| void | update (UpdateContext &updateContext) noexcept |
|
Executes one update pass for active entities. More... | |
Private Member Functions Index
template <typename TMemberHandle> | |
| float | wrapRad (float a) const noexcept |
|
Wraps an angle to the interval [-pi, +pi]. More... | |
Description
Updates Rotation3DComponent<..., Local> from YawPitchRollComponent.
- Template Parameters
-
TMemberHandle ECS member handle type used by queried components.
Definition at line 36 of file YawPitchRollUpdateSystem.ixx.
Public Member Typedefs
EngineRoleTag
|
Runtime role tag used for system registration.
Definition at line 55 of file YawPitchRollUpdateSystem.ixx.
Public Member Functions
update()
| inline noexcept |
Executes one update pass for active entities.
Reads yaw/pitch/roll angles, wraps them to [-pi, +pi], builds axis-angle quaternions and writes the composed local rotation.
- Parameters
-
updateContext Frame-local update context with ECS access.
Definition at line 65 of file YawPitchRollUpdateSystem.ixx.
Reference helios::engine::scene::registerComponents.
Private Member Functions
wrapRad()
| inline noexcept |
Wraps an angle to the interval [-pi, +pi].
- Parameters
-
a Input angle in radians.
- Returns
Wrapped angle in radians.
Definition at line 44 of file YawPitchRollUpdateSystem.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.