Browse Source

Merge pull request #6582 from smix8/doc_fix_missing_navgent_var_4.x

Fix missing var in NavigationAgent script example
Max Hilbrunner 2 years ago
parent
commit
7c194d9d7b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tutorials/navigation/navigation_using_navigationagents.rst

+ 1 - 0
tutorials/navigation/navigation_using_navigationagents.rst

@@ -187,6 +187,7 @@ This script adds basic navigation movement to a CharacterBody3D with a Navigatio
 
 
     @export var movement_speed : float = 4.0
     @export var movement_speed : float = 4.0
     @onready var navigation_agent : NavigationAgent3D = get_node("NavigationAgent3D")
     @onready var navigation_agent : NavigationAgent3D = get_node("NavigationAgent3D")
+    var movement_delta : float
 
 
     func set_movement_target(movement_target : Vector3):
     func set_movement_target(movement_target : Vector3):
         navigation_agent.set_target_location(movement_target)
         navigation_agent.set_target_location(movement_target)