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
  • Functions
  • Method Descriptions
  1. Code Reference

GSAIBlend

Extends: GSAISteeringBehavior

Description

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 }

Functions

Type
Name

void

func add(behavior: GSAISteeringBehavior, weight: float) -> void

Dictionary

func get_behavior_at(index: int) -> Dictionary

Method Descriptions

add

func add(behavior: GSAISteeringBehavior, weight: float) -> void

Appends a behavior to the internal array along with its weight.

get_behavior_at

func get_behavior_at(index: int) -> Dictionary

Returns the behavior at the specified index, or an empty Dictionary if none was found.

PreviousGSAILookWhereYouGoNextGSAIGroupBehavior

Last updated 2 years ago