Add Pitch/Yaw Vector Fix
Dieser Commit ist enthalten in:
Ursprung
a20503b543
Commit
d1820d9e5b
@ -268,7 +268,7 @@ public class Config {
|
|||||||
|
|
||||||
Vector v1 = TeamBlueSpawn.toVector().subtract(TeamRedSpawn.toVector());
|
Vector v1 = TeamBlueSpawn.toVector().subtract(TeamRedSpawn.toVector());
|
||||||
double pitch = Math.toDegrees(v1.angle(v1.clone().setY(0)));
|
double pitch = Math.toDegrees(v1.angle(v1.clone().setY(0)));
|
||||||
double yaw = Math.toDegrees(v1.clone().setY(0).angle(new Vector(1, 0, 0)));
|
double yaw = Math.toDegrees(v1.clone().setY(0).angle(new Vector(0, 0, 1)));
|
||||||
double pitchInverted = pitch * -1;
|
double pitchInverted = pitch * -1;
|
||||||
double yawInverted = yaw + 180;
|
double yawInverted = yaw + 180;
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren