GSAIPriority
Extends: GSAISteeringBehavior
Description
Container for multiple behaviors that returns the result of the first child behavior with non-zero acceleration.
Properties
Type
Name
int
last_selected_index
float
zero_threshold
Functions
Type
Name
void
func add(behavior: GSAISteeringBehavior) -> void
GSAISteeringBehavior
func get_behavior_at(index: int) -> GSAISteeringBehavior
Property Descriptions
last_selected_index
The index of the last behavior the container prioritized.
zero_threshold
If a behavior's acceleration is lower than this threshold, the container considers it has an acceleration of zero.
Method Descriptions
add
Appends a steering behavior as a child of this container.
get_behavior_at
Returns the behavior at the position in the pool referred to by index
, or null
if no behavior was found.
Last updated