TranslationStateComponent.ixx File
Component for storing the current translation (position) state of an entity. More...
Included Headers
#include <cmath>
#include <helios.math>
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 | TranslationStateComponent |
|
Component that holds the current translation (position) state. More... | |
Description
Component for storing the current translation (position) state of an entity.
File Listing
The file content with the documentation metadata removed is:
15export namespace helios::engine::modules::spatial::transform::components {
25 class TranslationStateComponent {
30 helios::math::vec3f translation_{};
65 TranslationStateComponent() = default;
72 TranslationStateComponent(const TranslationStateComponent& other) :
79 TranslationStateComponent& operator=(const TranslationStateComponent&) = default;
84 TranslationStateComponent(TranslationStateComponent&&) noexcept = default;
89 TranslationStateComponent& operator=(TranslationStateComponent&&) noexcept = default;
96 explicit TranslationStateComponent(const helios::math::vec3f translation) :
97 translation_(translation) {}
103 translation_ = helios::math::vec3f{};
111 translation_ = helios::math::vec3f{};
119 void setTranslation (helios::math::vec3f translation) {
120 translation_ = translation;
128 void translateBy(helios::math::vec3f translation) {
129 translation_ = translation_ + translation;
137 [[nodiscard]] helios::math::vec3f translation() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.