Fix typo at 2d_movenet.rst

This commit is contained in:
VladKopylets
2023-03-23 20:56:28 +02:00
committed by GitHub
parent 057d8b97f1
commit 6085dad3ff

View File

@@ -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)
{