Преглед изворни кода

Fix typo at 2d_movenet.rst

VladKopylets пре 2 година
родитељ
комит
6085dad3ff
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)
             {