ComposeTransformComponent.ixx File
Component for managing local and world transformations of a GameObject. More...
Included Headers
#include <helios.core.spatial.Transform>
#include <helios.math.types>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | modules |
|
Domain-specific components and systems. More... | |
| namespace | spatial |
| namespace | transform |
|
Transform components and systems for spatial state management. More... | |
| namespace | components |
|
Transform state components for spatial management. More... | |
Classes Index
| class | ComposeTransformComponent |
|
Component that holds transformation data (position, rotation, scale). More... | |
Description
Component for managing local and world transformations of a GameObject.
File Listing
The file content with the documentation metadata removed is:
13export namespace helios::engine::modules::spatial::transform::components {
23 class ComposeTransformComponent {
28 helios::core::spatial::Transform transform_{};
38 helios::math::mat4f worldTransform_ = helios::math::mat4f::identity();
73 ComposeTransformComponent() = default;
80 ComposeTransformComponent(const ComposeTransformComponent& other) :
85 ComposeTransformComponent& operator=(const ComposeTransformComponent&) = default;
86 ComposeTransformComponent(ComposeTransformComponent&&) noexcept = default;
87 ComposeTransformComponent& operator=(ComposeTransformComponent&&) noexcept = default;
101 void clearDirty() noexcept {
128 [[nodiscard]] helios::math::mat4f localTransform() const noexcept {
139 ComposeTransformComponent& setLocalScale(const helios::math::vec3f& scale) noexcept {
152 ComposeTransformComponent& setLocalRotation(const helios::math::mat4f& rotation) noexcept {
165 ComposeTransformComponent& setLocalTranslation(const helios::math::vec3f& translation) noexcept {
177 ComposeTransformComponent& translateLocalBy(const helios::math::vec3f& translation) noexcept {
188 [[nodiscard]] helios::math::vec3f localTranslation() const noexcept {
198 [[nodiscard]] helios::math::mat4f localRotation() const noexcept {
208 [[nodiscard]] helios::math::vec3f localScaling() const noexcept {
217 void setWorldTransform(const helios::math::mat4f& m) noexcept {
227 const helios::math::mat4f& worldTransform() noexcept {
236 helios::math::vec3f worldTranslation() noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.