facingEnemy #160
@ -250,7 +250,7 @@ public class Config {
|
|||||||
TeamRedPasteZ = TeamBluePasteZ + TeamBluetoReddistanceZ;
|
TeamRedPasteZ = TeamBluePasteZ + TeamBluetoReddistanceZ;
|
||||||
|
|
||||||
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) + Math.PI / 2);
|
||||||
double pitch = Math.toDegrees(Math.atan2(Math.sqrt(TeamBluetoReddistanceZ * TeamBluetoReddistanceZ + TeamBluetoReddistanceX * TeamBluetoReddistanceX), TeamBluetoReddistanceY));
|
double pitch = Math.toDegrees(Math.atan2(Math.sqrt(TeamBluetoReddistanceZ * TeamBluetoReddistanceZ + TeamBluetoReddistanceX * TeamBluetoReddistanceX), TeamBluetoReddistanceY));
|
||||||
double yawInverted = ((yaw + 180) * 180) / 180;
|
double yawInverted = ((yaw + 180) * 180) / 180;
|
||||||
double pitchInverted = ((90 - pitch) * 180) / 180;
|
double pitchInverted = ((90 - pitch) * 180) / 180;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren