GSAIBlend
Last updated
Extends: GSAISteeringBehavior
Blends multiple steering behaviors into one, and returns a weighted acceleration from their calculations.
Stores the behaviors internally as dictionaries of the form { behavior : GSAISteeringBehavior, weight : float }
void
func add(behavior: GSAISteeringBehavior, weight: float) -> void
Dictionary
func get_behavior_at(index: int) -> Dictionary
func add(behavior: GSAISteeringBehavior, weight: float) -> voidAppends a behavior to the internal array along with its weight.
func get_behavior_at(index: int) -> DictionaryReturns the behavior at the specified index, or an empty Dictionary if none was found.
Last updated