mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user