Les fleches c'est pour les noobs.

This commit is contained in:
MarcEricMartel
2023-06-10 17:18:19 -04:00
parent 25fe5ee634
commit 8f177ffa0e
2 changed files with 37 additions and 0 deletions

View File

@@ -23,6 +23,15 @@ public partial class player : Camera3D
Vector3 rot = this.Rotation;
bool zin = true, zout = true;
if (Input.IsActionPressed("CamNorth"))
_mUp = true;
if (Input.IsActionPressed("CamSouth"))
_mDown = true;
if (Input.IsActionPressed("CamEast"))
_mRight = true;
if (Input.IsActionPressed("CamWest"))
_mLeft = true;
this.Rotation -= rot;
if (this.Position.Y < 5)
zin = false;
@@ -67,5 +76,6 @@ public partial class player : Camera3D
else if (mousebtn.ButtonIndex == MouseButton.WheelDown)
_wOut = true;
}
}
}