Rotation slot location by building rotation.
This commit is contained in:
1 parent
48172fb220
commit
b7c2e09b81
2 files changed
+8
-11
No files matched your search
@@ -364,7 +364,7 @@ public class NPC extends AbstractCharacter {
|
||||
|
||||
// Rotate slot position by the building rotation
|
||||
|
||||
Vector3fImmutable.rotateAroundPoint(building.getLoc(), this.bindLoc, -building.getBounds().getQuaternion().angleY);
|
||||
this.bindLoc = Vector3fImmutable.rotateAroundPoint(building.getLoc(), this.bindLoc, -building.getBounds().getQuaternion().angleY);
|
||||
|
||||
this.loc = new Vector3fImmutable(bindLoc);
|
||||
|
||||
|
||||
Reference in new issue
Block a user