It's w not y.
This commit is contained in:
1 parent
5d6e43313b
commit
44b99a8781
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user