Godot 3 Steering AI Framework
  • Godot Steering AI Framework
  • Installation
  • Getting Started
  • Code Reference
    • GSAIAgentLocation
    • GSAIArrive
    • GSAIFlee
    • GSAILookWhereYouGo
    • GSAIBlend
    • GSAIGroupBehavior
    • GSAIUtils
    • GSAIKinematicBody2DAgent
    • GSAIPriority
    • GSAIRadiusProximity
    • GSAIPursue
    • GSAIPath
    • GSAIAvoidCollisions
Powered by GitBook
On this page
  • Description
  • Properties
  • Functions
  • Property Descriptions
  • Method Descriptions
  1. Code Reference

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

var last_selected_index: int

The index of the last behavior the container prioritized.

zero_threshold

var zero_threshold: float

If a behavior's acceleration is lower than this threshold, the container considers it has an acceleration of zero.

Method Descriptions

add

func add(behavior: GSAISteeringBehavior) -> void

Appends a steering behavior as a child of this container.

get_behavior_at

func get_behavior_at(index: int) -> GSAISteeringBehavior

Returns the behavior at the position in the pool referred to by index, or null if no behavior was found.

PreviousGSAIKinematicBody2DAgentNextGSAIRadiusProximity

Last updated 2 years ago