Fix typo in c# script of bouncing/reflecting part (#3443)

This commit is contained in:
Daniel Nimmervoll
2020-04-25 17:31:08 +02:00
committed by GitHub
parent 7e3c39641a
commit 6af982bc47

View File

@@ -347,11 +347,11 @@ uses the mouse pointer. Here is the code for the Player, using ``move_and_slide(
_velocity = new Vector2();
if (Input.IsActionPressed("backward"))
{
_velocity = new Vector2(-speed/3, 0).Rotated(Rotation);
_velocity = new Vector2(-Speed/3, 0).Rotated(Rotation);
}
if (Input.IsActionPressed("forward"))
{
_velocity = new Vector2(speed, 0).Rotated(Rotation);
_velocity = new Vector2(Speed, 0).Rotated(Rotation);
}
if (Input.IsActionPressed("mouse_click"))
{