mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Replace incorrect Speed variable in C# snippet in scripting_player_input.rst (#7401)
This commit is contained in:
committed by
Max Hilbrunner
parent
199dc1ddb0
commit
59a775466d
@@ -102,7 +102,7 @@ velocity. Replace the line starting with ``var velocity`` with the code below.
|
||||
var velocity = Vector2.Zero;
|
||||
if (Input.IsActionPressed("ui_up"))
|
||||
{
|
||||
velocity = Vector2.Up.Rotated(Rotation) * Speed;
|
||||
velocity = Vector2.Up.Rotated(Rotation) * _speed;
|
||||
}
|
||||
|
||||
We initialize the ``velocity`` with a value of ``Vector2.ZERO``, another
|
||||
|
||||
Reference in New Issue
Block a user