Browse Source

It's w not y.

master
MagicBot 2 years ago
parent
commit
44b99a8781
  1. 2
      src/engine/objects/Mob.java
  2. 2
      src/engine/objects/NPC.java

2
src/engine/objects/Mob.java

@ -378,7 +378,7 @@ public class Mob extends AbstractIntelligenceAgent {
writer.putVector3f(mob.getLoc()); writer.putVector3f(mob.getLoc());
//Rotation //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 != null)
if (mob.building.getBounds() != null && mob.building.getBounds().getQuaternion() != null) if (mob.building.getBounds() != null && mob.building.getBounds().getQuaternion() != null)

2
src/engine/objects/NPC.java

@ -646,7 +646,7 @@ public class NPC extends AbstractCharacter {
writer.putVector3f(npc.getLoc()); writer.putVector3f(npc.getLoc());
//Rotation //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 != null)
if (npc.building.getBounds() != null && npc.building.getBounds().getQuaternion() != null) if (npc.building.getBounds() != null && npc.building.getBounds().getQuaternion() != null)

Loading…
Cancel
Save