Browse Source

Fix typo in c# script of bouncing/reflecting part (#3443)

Daniel Nimmervoll 5 years ago
parent
commit
6af982bc47
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tutorials/physics/using_kinematic_body_2d.rst

+ 2 - 2
tutorials/physics/using_kinematic_body_2d.rst

@@ -347,11 +347,11 @@ uses the mouse pointer. Here is the code for the Player, using ``move_and_slide(
             _velocity = new Vector2();
             if (Input.IsActionPressed("backward"))
             {
-                _velocity = new Vector2(-speed/3, 0).Rotated(Rotation);
+                _velocity = new Vector2(-Speed/3, 0).Rotated(Rotation);
             }
             if (Input.IsActionPressed("forward"))
             {
-                _velocity = new Vector2(speed, 0).Rotated(Rotation);
+                _velocity = new Vector2(Speed, 0).Rotated(Rotation);
             }
             if (Input.IsActionPressed("mouse_click"))
             {