SteamWar/FightSystem
Archiviert
13
1

Add Pitch/Yaw Math.toDegrees()

Dieser Commit ist enthalten in:
jojo 2020-05-23 12:27:08 +02:00
Ursprung be0f3728b5
Commit a20503b543

Datei anzeigen

@ -267,8 +267,8 @@ public class Config {
TeamRedPasteZ + 0.5 - teamBlueSpawnOffsetZ);
Vector v1 = TeamBlueSpawn.toVector().subtract(TeamRedSpawn.toVector());
double pitch = v1.angle(v1.clone().setY(0));
double yaw = v1.clone().setY(0).angle(new Vector(1, 0, 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 pitchInverted = pitch * -1;
double yawInverted = yaw + 180;