From 44b99a87813be20e7f74184d5793a8653ccd901b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 1 May 2023 15:58:04 -0400 Subject: [PATCH] It's w not y. --- src/engine/objects/Mob.java | 2 +- src/engine/objects/NPC.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 5c604226..bfc60eca 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -378,7 +378,7 @@ public class Mob extends AbstractIntelligenceAgent { writer.putVector3f(mob.getLoc()); //Rotation - float radians = (float) Math.asin(mob.getRot().y) * 2; + float radians = (float) Math.acos(mob.getRot().y) * 2; if (mob.building != null) if (mob.building.getBounds() != null && mob.building.getBounds().getQuaternion() != null) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index c8a7d4d2..3e0d0657 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -646,7 +646,7 @@ public class NPC extends AbstractCharacter { writer.putVector3f(npc.getLoc()); //Rotation - float radians = (float) Math.asin(npc.getRot().y) * 2; + float radians = (float) Math.acos(npc.getRot().y) * 2; if (npc.building != null) if (npc.building.getBounds() != null && npc.building.getBounds().getQuaternion() != null)