mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Merge pull request #3898 from faintdeception/patch-1
Typo in C# example change velocity to _velocity
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user