GSAISteeringBehavior

Extends:

Description

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.

Properties

TypeName
boolis_enabled
GSAISteeringAgentagent

Methods

TypeName
voidfunc calculate_steering(acceleration: GSAITargetAcceleration) -> void

Property Descriptions

is_enabled

var is_enabled: bool

If false, all calculations return zero amounts of acceleration.

agent

var agent: GSAISteeringAgent

The AI agent on which the steering behavior bases its calculations.

Method Descriptions

calculate_steering

func calculate_steering(acceleration: GSAITargetAcceleration) -> void

Sets the acceleration with the behavior’s desired amount of acceleration.