From be0f3728b5db6238deb9bde5e0eb723dcb662a91 Mon Sep 17 00:00:00 2001 From: jojo Date: Fri, 22 May 2020 23:44:58 +0200 Subject: [PATCH] Add Pitch/Yaw calculation with Vector --- FightSystem_API/src/de/steamwar/fightsystem/Config.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FightSystem_API/src/de/steamwar/fightsystem/Config.java b/FightSystem_API/src/de/steamwar/fightsystem/Config.java index 13a2da8..e8ec1f6 100644 --- a/FightSystem_API/src/de/steamwar/fightsystem/Config.java +++ b/FightSystem_API/src/de/steamwar/fightsystem/Config.java @@ -272,11 +272,11 @@ public class Config { double pitchInverted = pitch * -1; double yawInverted = yaw + 180; - TeamBlueSpawn.setYaw((float) yawInverted); - TeamBlueSpawn.setPitch((float) pitchInverted); + TeamBlueSpawn.setYaw((float) yaw); + TeamBlueSpawn.setPitch((float) pitch); - TeamRedSpawn.setYaw((float) yaw); - TeamRedSpawn.setPitch((float) pitch); + TeamRedSpawn.setYaw((float) yawInverted); + TeamRedSpawn.setPitch((float) pitchInverted); SpecSpawn = new Location(world, TeamBluePasteX + TeamBluetoReddistanceX/2.0,