فهرست منبع

Merge pull request #3898 from faintdeception/patch-1

Typo in C# example change velocity to _velocity
Rémi Verschelde 4 سال پیش
والد
کامیت
1740baf9de
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tutorials/physics/using_kinematic_body_2d.rst

+ 1 - 1
tutorials/physics/using_kinematic_body_2d.rst

@@ -265,7 +265,7 @@ Attach a script to the KinematicBody2D and add the following code:
         public override void _PhysicsProcess(float delta)
         public override void _PhysicsProcess(float delta)
         {
         {
             GetInput();
             GetInput();
-            MoveAndCollide(velocity * delta);
+            MoveAndCollide(_velocity * delta);
         }
         }
     }
     }