Browse Source

Positive rotation not negative.

master
MagicBot 2 years ago
parent
commit
e745c260f0
  1. 2
      src/engine/objects/Mob.java
  2. 2
      src/engine/objects/NPC.java

2
src/engine/objects/Mob.java

@ -920,7 +920,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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);

2
src/engine/objects/NPC.java

@ -364,7 +364,7 @@ public class NPC extends AbstractCharacter { @@ -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);

Loading…
Cancel
Save