diff --git a/tutorials/physics/physics_introduction.rst b/tutorials/physics/physics_introduction.rst index 4fceecb95..1d22c25c5 100644 --- a/tutorials/physics/physics_introduction.rst +++ b/tutorials/physics/physics_introduction.rst @@ -493,7 +493,7 @@ the ground (including slopes) and jump when standing on the ground: { _velocity.y += _gravity * delta; GetInput(); - _velocity = MoveAndSlide(velocity, new Vector2(0,-1)); + _velocity = MoveAndSlide(_velocity, new Vector2(0,-1)); } }