Files
fps_project_1/scripts/deposit_bot.gd
2025-05-12 11:12:52 -05:00

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)