Explorar o código

Fix navigation script error

safe_velocity isn't declared in this script. Changing it to new_velocity makes it funciton correctly.
ddxt %!s(int64=2) %!d(string=hai) anos
pai
achega
64372c3922
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tutorials/navigation/navigation_introduction_3d.rst

+ 1 - 1
tutorials/navigation/navigation_introduction_3d.rst

@@ -157,7 +157,7 @@ a NavigationAgent3D for path movement.
         new_velocity = new_velocity.normalized()
         new_velocity = new_velocity * movement_speed
 
-        velocity = safe_velocity
+        velocity = new_velocity
         move_and_slide()
 
  .. code-tab:: csharp C#