ScaleStateComponent.ixx File
Component for managing the dimensions of an entity. More...
Included Headers
#include <helios.core.units.Unit>
#include <helios.core.spatial.Transform>
#include <helios.math.types>
#include <helios.engine.ecs.GameObject>
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 | ScaleStateComponent |
|
Component that defines the physical dimensions (scale) of an entity. More... | |
Description
Component for managing the dimensions of an entity.
File Listing
The file content with the documentation metadata removed is:
16export namespace helios::engine::modules::spatial::transform::components {
26 class ScaleStateComponent {
45 helios::core::units::Unit unit_;
90 explicit ScaleStateComponent(const float width, const float height, const float depth, const helios::core::units::Unit unit) :
91 width_(width), height_(height), depth_(depth), unit_(unit) {}
93 explicit ScaleStateComponent(const helios::math::vec3f scale, const helios::core::units::Unit unit = helios::core::units::Unit::Meter) :
94 width_(scale[0]), height_(scale[1]), depth_(scale[2]), unit_(unit) {}
101 ScaleStateComponent(const ScaleStateComponent& other) :
108 ScaleStateComponent& operator=(const ScaleStateComponent&) = default;
109 ScaleStateComponent(ScaleStateComponent&&) noexcept = default;
110 ScaleStateComponent& operator=(ScaleStateComponent&&) noexcept = default;
136 void clearDirty() noexcept {
155 [[nodiscard]] helios::core::units::Unit unit() const noexcept {
164 [[nodiscard]] helios::math::vec3f scaling() const noexcept {
183 unit_ = unit;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.