bugfix in quaternion math.

This commit is contained in:
MagicBot committed 2023-05-02 13:21:40 -04:00
1 parent 52160d48c4
commit c56d5567f2
1 file changed
+1 -1
+1 -1
View File
@@ -931,7 +931,7 @@ public class Mob extends AbstractIntelligenceAgent {
// Rotate mobile's rotation by the building's rotation
slotRotation = new Quaternion().fromAngles(0, acos(this.getRot().y), 0);
slotRotation = new Quaternion().fromAngles(0, acos(this.getRot().y) * 2, 0);
slotRotation = slotRotation.mult(building.getBounds().getQuaternion());
this.setRot(new Vector3f(0, slotRotation.y, 0));