Extends: GSAISpecializedAgent < GSAISteeringAgent < GSAIAgentLocation
A specialized steering agent that updates itself every frame so the user does not have to using a KinematicBody
Type | Name |
---|---|
KinematicBody | body |
int | movement_type |
Type | Name |
---|---|
void | func _apply_steering(acceleration: GSAITargetAcceleration, delta: float) -> void |
const MovementType: Dictionary = {"COLLIDE":1,"POSITION":2,"SLIDE":0}
var body: KinematicBody
Setter | _set_body
The KinematicBody to keep track of
var movement_type: int
The type of movement the body executes
func _apply_steering(acceleration: GSAITargetAcceleration, delta: float) -> void
Moves the agent’s body
by target acceleration
.