Extends: GSAISpecializedAgent < GSAISteeringAgent < GSAIAgentLocation
A specialized steering agent that updates itself every frame so the user does not have to using a RigidBody2D
Type | Name |
---|---|
RigidBody2D | body |
Type | Name |
---|---|
void | func _apply_steering(acceleration: GSAITargetAcceleration, _delta: float) -> void |
var body: RigidBody2D
Setter | _set_body
The RigidBody2D to keep track of
func _apply_steering(acceleration: GSAITargetAcceleration, _delta: float) -> void
Moves the agent’s body
by target acceleration
.