Typo in C# example change velocity to _velocity

There's a typo in the C# example code:

MoveAndCollide(velocity * delta);

should be 

MoveAndCollide(_velocity * delta);
This commit is contained in:
Zach Ruffin
2020-08-14 07:52:07 -04:00
committed by GitHub
parent f733f648a0
commit b8c26c2bad

View File

@@ -263,7 +263,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);
}
}