NPC rotations inherit building rotation.
This commit is contained in:
1 parent
c56d5567f2
commit
82aeba3a05
2 files changed
+8
-1
No files matched your search
@@ -929,7 +929,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
this.loc = new Vector3fImmutable(bindLoc);
|
||||
this.endLoc = new Vector3fImmutable(bindLoc);
|
||||
|
||||
// Rotate mobile's rotation by the building's rotation
|
||||
// Rotate mobile rotation by the building's rotation
|
||||
|
||||
slotRotation = new Quaternion().fromAngles(0, acos(this.getRot().y) * 2, 0);
|
||||
slotRotation = slotRotation.mult(building.getBounds().getQuaternion());
|
||||
|
||||
Reference in new issue
Block a user