SteeringConfig Class
Fluent configuration for steering and rotation behavior. More...
Declaration
Public Constructors Index
| SteeringConfig (helios::engine::ecs::GameObject gameObject) | |
|
Constructs a SteeringConfig and adds required components. More... | |
Public Member Functions Index
| SteeringConfig & | instantSteering (const bool useInstantRotation) |
|
Enables or disables instant rotation. More... | |
| SteeringConfig & | steeringSetsDirection (const bool directionFromSteering) |
|
Sets whether steering input updates movement direction. More... | |
Private Member Attributes Index
| helios::engine::ecs::GameObject | gameObject_ |
|
Non-owning pointer to the target GameObject. More... | |
Description
Fluent configuration for steering and rotation behavior.
Automatically adds required components:
- SteeringComponent
- ComposeTransformComponent
- RotationStateComponent
- DirectionComponent
Definition at line 24 of file SteeringConfig.ixx.
Public Constructors
SteeringConfig()
| inline explicit |
Constructs a SteeringConfig and adds required components.
- Parameters
-
<a href="/docs/helios/namespaces/helios/engine/builder/gameobject">gameObject</a> Target GameObject to configure.
Definition at line 38 of file SteeringConfig.ixx.
Referenced by instantSteering and steeringSetsDirection.
Public Member Functions
instantSteering()
| inline |
Enables or disables instant rotation.
When enabled, the entity rotates immediately to face target.
- Parameters
-
useInstantRotation True for instant rotation.
- Returns
Reference to this config for chaining.
Definition at line 55 of file SteeringConfig.ixx.
Reference SteeringConfig.
steeringSetsDirection()
| inline |
Sets whether steering input updates movement direction.
- Parameters
-
directionFromSteering True to link direction to steering.
- Returns
Reference to this config for chaining.
Definition at line 69 of file SteeringConfig.ixx.
Reference SteeringConfig.
Private Member Attributes
gameObject_
|
Non-owning pointer to the target GameObject.
Definition at line 29 of file SteeringConfig.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.