SteamWar/FightSystem
Archiviert
13
1

Add Pitch/Yaw calculation with Vector

Dieser Commit ist enthalten in:
jojo 2020-05-22 23:44:58 +02:00
Ursprung b800bdad29
Commit be0f3728b5

Datei anzeigen

@ -272,11 +272,11 @@ public class Config {
double pitchInverted = pitch * -1; double pitchInverted = pitch * -1;
double yawInverted = yaw + 180; double yawInverted = yaw + 180;
TeamBlueSpawn.setYaw((float) yawInverted); TeamBlueSpawn.setYaw((float) yaw);
TeamBlueSpawn.setPitch((float) pitchInverted); TeamBlueSpawn.setPitch((float) pitch);
TeamRedSpawn.setYaw((float) yaw); TeamRedSpawn.setYaw((float) yawInverted);
TeamRedSpawn.setPitch((float) pitch); TeamRedSpawn.setPitch((float) pitchInverted);
SpecSpawn = new Location(world, SpecSpawn = new Location(world,
TeamBluePasteX + TeamBluetoReddistanceX/2.0, TeamBluePasteX + TeamBluetoReddistanceX/2.0,