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