GSAIRigidBody2DAgent

Extends: GSAISpecializedAgent < GSAISteeringAgent < GSAIAgentLocation

Description

A specialized steering agent that updates itself every frame so the user does not have to using a RigidBody2D

Properties

TypeName
RigidBody2Dbody

Functions

TypeName
voidfunc _apply_steering(acceleration: GSAITargetAcceleration, _delta: float) -> void

Property Descriptions

body

var body: RigidBody2D

Setter | _set_body

The RigidBody2D to keep track of

Method Descriptions

_apply_steering (virtual)

func _apply_steering(acceleration: GSAITargetAcceleration, _delta: float) -> void

Moves the agent’s body by target acceleration.