Преглед на файлове

Merge pull request #8537 from codeanish/patch-3

Update 2d_movement.rst
Matthew преди 1 година
родител
ревизия
e7a7f50151
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tutorials/2d/2d_movement.rst

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

@@ -262,7 +262,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;
-            // LookAt(target);
+            // LookAt(_target);
             if (Position.DistanceTo(_target) > 10)
             {
                 MoveAndSlide();