Base class for all steering behaviors.
Steering behaviors calculate the linear and the angular acceleration to be to the agent that owns them.
The calculate_steering
function is the entry point for all behaviors.
Individual steering behaviors encapsulate the steering logic.
Type | Name |
---|---|
bool | is_enabled |
GSAISteeringAgent | agent |
Type | Name |
---|---|
void | func calculate_steering(acceleration: GSAITargetAcceleration) -> void |
var is_enabled: bool
If false
, all calculations return zero amounts of acceleration.
var agent: GSAISteeringAgent
The AI agent on which the steering behavior bases its calculations.
func calculate_steering(acceleration: GSAITargetAcceleration) -> void
Sets the acceleration
with the behavior’s desired amount of acceleration.