From a20503b543dc6eef05002a19952cf92d38f53fa3 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 23 May 2020 12:27:08 +0200 Subject: [PATCH] Add Pitch/Yaw Math.toDegrees() --- FightSystem_API/src/de/steamwar/fightsystem/Config.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FightSystem_API/src/de/steamwar/fightsystem/Config.java b/FightSystem_API/src/de/steamwar/fightsystem/Config.java index e8ec1f6..6028490 100644 --- a/FightSystem_API/src/de/steamwar/fightsystem/Config.java +++ b/FightSystem_API/src/de/steamwar/fightsystem/Config.java @@ -267,8 +267,8 @@ public class Config { TeamRedPasteZ + 0.5 - teamBlueSpawnOffsetZ); Vector v1 = TeamBlueSpawn.toVector().subtract(TeamRedSpawn.toVector()); - double pitch = v1.angle(v1.clone().setY(0)); - double yaw = v1.clone().setY(0).angle(new Vector(1, 0, 0)); + double pitch = Math.toDegrees(v1.angle(v1.clone().setY(0))); + double yaw = Math.toDegrees(v1.clone().setY(0).angle(new Vector(1, 0, 0))); double pitchInverted = pitch * -1; double yawInverted = yaw + 180;