SteamWar/FightSystem
Archiviert
13
1

facingEnemy #160

Manuell gemergt
Lixfel hat 13 Commits von facingEnemy nach master 2020-05-23 16:08:25 +02:00 zusammengeführt
Nur Änderungen aus Commit 7e4825472f werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -252,8 +252,8 @@ public class Config {
World world = Bukkit.getWorlds().get(0); World world = Bukkit.getWorlds().get(0);
double yaw = Math.toDegrees(Math.atan2(TeamBluetoReddistanceZ, TeamBluetoReddistanceX)); double yaw = Math.toDegrees(Math.atan2(TeamBluetoReddistanceZ, TeamBluetoReddistanceX));
double pitch = Math.toDegrees(Math.atan2(Math.sqrt(TeamBluetoReddistanceZ * TeamBluetoReddistanceZ + TeamBluetoReddistanceX * TeamBluetoReddistanceX), TeamBluetoReddistanceY) + Math.PI); double pitch = Math.toDegrees(Math.atan2(Math.sqrt(TeamBluetoReddistanceZ * TeamBluetoReddistanceZ + TeamBluetoReddistanceX * TeamBluetoReddistanceX), TeamBluetoReddistanceY) + Math.PI);
double yawInverted = ((yaw + 90 + 180) * Math.PI) / 180; double yawInverted = ((yaw + 90 + 180) * 180) / 180;
double pitchInverted = ((90 - pitch) * Math.PI) / 180; double pitchInverted = ((90 - pitch) * 180) / 180;
TeamBlueSpawn = new Location(world, TeamBlueSpawn = new Location(world,
TeamBluePasteX + 0.5 + teamBlueSpawnOffsetX, TeamBluePasteX + 0.5 + teamBlueSpawnOffsetX,