Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Jul 28, 2024
1 parent 05dc0f8 commit 0ee6138
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ public TrackedLocation(@NotNull Craft craft, @NotNull MovecraftLocation location
* Rotates the stored location.
* @param rotation A clockwise or counter-clockwise direction to rotate.
*/
public void rotate(MovecraftRotation rotation) {
MovecraftLocation midPoint = craft.getHitBox().getMidPoint();
offSet = MathUtils.rotateVec(rotation, getAbsoluteLocation().subtract(midPoint));
public void rotate(MovecraftRotation rotation, MovecraftLocation origin) {
offSet = MathUtils.rotateVec(rotation, getAbsoluteLocation().subtract(origin));
}

/**
Expand Down

0 comments on commit 0ee6138

Please sign in to comment.