Merge pull request #3898 from faintdeception/patch-1

Typo in C# example change velocity to _velocity
This commit is contained in:
Rémi Verschelde
2020-09-09 14:14:04 +02:00
committed by GitHub

View File

@@ -265,7 +265,7 @@ Attach a script to the KinematicBody2D and add the following code:
public override void _PhysicsProcess(float delta)
{
GetInput();
MoveAndCollide(velocity * delta);
MoveAndCollide(_velocity * delta);
}
}