LevelBoundsCollisionConfig.ixx File
Configuration for level boundary collision behavior. More...
Included Headers
#include <cassert>
#include <memory>
#include <helios.engine.modules.physics.collision.types>
#include <helios.engine.mechanics.bounds.components.LevelBoundsBehaviorComponent>
#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 | LevelBoundsCollisionConfig |
|
Fluent configuration for level boundary collision behavior. More... | |
Description
Configuration for level boundary collision behavior.
File Listing
The file content with the documentation metadata removed is:
18export namespace helios::engine::builder::gameObject::builders::configs {
26 class LevelBoundsCollisionConfig {
31 helios::engine::ecs::GameObject gameObject_;
40 auto* lbcc = gameObject_.get<helios::engine::mechanics::bounds::components::LevelBoundsBehaviorComponent>();
57 explicit LevelBoundsCollisionConfig(helios::engine::ecs::GameObject gameObject) : gameObject_(gameObject) {}
66 LevelBoundsCollisionConfig& onCollision(helios::engine::modules::physics::collision::types::CollisionBehavior collisionBehavior) {
68 gameObject_.getOrAdd<helios::engine::mechanics::bounds::components::LevelBoundsBehaviorComponent>()
81 LevelBoundsCollisionConfig& restitution(const float restitution) {
83 gameObject_.getOrAdd<helios::engine::mechanics::bounds::components::LevelBoundsBehaviorComponent>()
84 .setRestitution(restitution);
96 LevelBoundsCollisionConfig& respondWith(helios::engine::modules::physics::collision::types::CollisionResponse collisionResponse) {
98 gameObject_.getOrAdd<helios::engine::mechanics::bounds::components::LevelBoundsBehaviorComponent>()
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.