13 lines
309 B
GDScript
13 lines
309 B
GDScript
extends CharacterBody3D
|
|
|
|
@export var state_machine : StateMachine
|
|
@export var nav_agent : NavigationAgent3D
|
|
|
|
|
|
func _process(delta: float) -> void:
|
|
move_and_slide()
|
|
|
|
|
|
func _on_navigation_agent_3d_velocity_computed(safe_velocity: Vector3) -> void:
|
|
state_machine.current_state.velocity_computed(safe_velocity)
|