From e745c260f0ce546c70a2ffbe768a1e60b5b8fe76 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 2 May 2023 08:46:43 -0400 Subject: [PATCH] Positive rotation not negative. --- src/engine/objects/Mob.java | 2 +- src/engine/objects/NPC.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 8c8d06d6..7065623c 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -920,7 +920,7 @@ public class Mob extends AbstractIntelligenceAgent { // 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.endLoc = new Vector3fImmutable(bindLoc); diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index bb8ffb81..ecb1fb8e 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -364,7 +364,7 @@ public class NPC extends AbstractCharacter { // 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);