TransformConfig.ixx File
Configuration for spatial transform components. More...
Included Headers
#include <helios.engine.core.units>
#include <helios.math>
#include <helios.engine.modules.spatial.transform.components>
#include <helios.engine.ecs.GameObject>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | builder |
|
Fluent builder pattern for constructing GameObjects. More... | |
| namespace | gameObject |
|
Factory and prototype classes for GameObject construction. More... | |
| namespace | builders |
|
Domain-specific builders for configuring different aspects of GameObjects. More... | |
| namespace | configs |
|
Fine-grained configuration classes for component setup. More... | |
Classes Index
| class | TransformConfig |
|
Fluent configuration for spatial transform setup. More... | |
Description
Configuration for spatial transform components.
File Listing
The file content with the documentation metadata removed is:
16export namespace helios::engine::builder::gameObject::builders::configs {
24 class TransformConfig {
29 helios::engine::ecs::GameObject gameObject_;
38 explicit TransformConfig(helios::engine::ecs::GameObject gameObject) : gameObject_(gameObject) {
39 gameObject_.add<helios::engine::modules::spatial::transform::components::ComposeTransformComponent>();
52 const helios::math::vec3f scale,
53 const helios::core::units::Unit unit = helios::core::units::Unit::Meter
55 gameObject_.add<helios::engine::modules::spatial::transform::components::ScaleStateComponent>(scale, unit);
66 TransformConfig& translate(const helios::math::vec3f translation) {
67 gameObject_.getOrAdd<helios::engine::modules::spatial::transform::components::TranslationStateComponent>()
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.