浏览代码

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

Daniel Nimmervoll 5 年之前
父节点
当前提交
6af982bc47
共有 1 个文件被更改,包括 2 次插入2 次删除
  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"))
             {