Browse Source

Fix invalid variable name in C# example in Physics introduction (#5809)

vratajin 3 years ago
parent
commit
4339ecded0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/physics/physics_introduction.rst

+ 1 - 1
tutorials/physics/physics_introduction.rst

@@ -493,7 +493,7 @@ the ground (including slopes) and jump when standing on the ground:
         {
         {
             _velocity.y += _gravity * delta;
             _velocity.y += _gravity * delta;
             GetInput();
             GetInput();
-            _velocity = MoveAndSlide(velocity, new Vector2(0,-1));
+            _velocity = MoveAndSlide(_velocity, new Vector2(0,-1));
         }
         }
     }
     }