Positive rotation not negative.

This commit is contained in:
2023-05-02 08:46:43 -04:00
parent b7c2e09b81
commit e745c260f0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -920,7 +920,7 @@ public class Mob extends AbstractIntelligenceAgent {
// Rotate slot position by the building rotation // Rotate slot position by the building rotation
this.bindLoc = 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); this.loc = new Vector3fImmutable(bindLoc);
this.endLoc = new Vector3fImmutable(bindLoc); this.endLoc = new Vector3fImmutable(bindLoc);
+1 -1
View File
@@ -364,7 +364,7 @@ public class NPC extends AbstractCharacter {
// Rotate slot position by the building rotation // Rotate slot position by the building rotation
this.bindLoc = 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); this.loc = new Vector3fImmutable(bindLoc);