Переглянути джерело

Merge pull request #7043 from deand0n/patch-1

Fix typo at 2d_movenet.rst
Max Hilbrunner 2 роки тому
батько
коміт
b01f7c7fa3
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      tutorials/2d/2d_movement.rst

+ 1 - 1
tutorials/2d/2d_movement.rst

@@ -261,7 +261,7 @@ on the screen will cause the player to move to the target location.
 
         public override void _PhysicsProcess(double delta)
         {
-            velocity = Position.DirectionTo(_target) * Speed;
+            Velocity = Position.DirectionTo(_target) * Speed;
             // LookAt(target);
             if (Position.DistanceTo(_target) > 10)
             {