From d1cd9ed69dab64b5bbc2448c4226061b2fa0b797 Mon Sep 17 00:00:00 2001 From: vratajin <38525030+vratajin@users.noreply.github.com> Date: Sat, 7 May 2022 22:04:48 +0200 Subject: [PATCH] Fix invalid variable name in C# example in Physics introduction (#5809) --- tutorials/physics/physics_introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }