added deposit robot
This commit is contained in:
12
scripts/deposit_bot.gd
Normal file
12
scripts/deposit_bot.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user