Explorar o código

Merge pull request #3898 from faintdeception/patch-1

Typo in C# example change velocity to _velocity
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
1740baf9de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tutorials/physics/using_kinematic_body_2d.rst

+ 1 - 1
tutorials/physics/using_kinematic_body_2d.rst

@@ -265,7 +265,7 @@ Attach a script to the KinematicBody2D and add the following code:
         public override void _PhysicsProcess(float delta)
         {
             GetInput();
-            MoveAndCollide(velocity * delta);
+            MoveAndCollide(_velocity * delta);
         }
     }