mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-07 02:12:07 +03:00
Fix typo in c# script of bouncing/reflecting part (#3443)
This commit is contained in:
committed by
GitHub
parent
7e3c39641a
commit
6af982bc47
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user