SteamWar/FightSystem
Archiviert
13
1

Add Pitch/Yaw Vector Fix

Dieser Commit ist enthalten in:
jojo 2020-05-23 13:07:28 +02:00
Ursprung c1d62e5e37
Commit 99fdf1abdb

Datei anzeigen

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