Update 2d_movement.rst

Fixing typo in C# code sample
This commit is contained in:
Anish Patel
2023-11-29 07:56:25 -08:00
committed by Max Hilbrunner
parent 4f2ca50c1c
commit 5b38644c78

View File

@@ -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();