Skip to content

Commit

Permalink
Fix light offset for beams to measure counterclockwise as for cones
Browse files Browse the repository at this point in the history
Isometric maps already did this, but all other maps (including gridless) measured clockwise for beams, counterclockwise
for cones.
  • Loading branch information
kwvanderlinde committed Oct 4, 2024
1 parent ba4b9f7 commit 0df9669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/rptools/maptool/model/Grid.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public void setSize(int size) {

visibleArea =
new Area(
AffineTransform.getRotateInstance(Math.toRadians(offsetAngle + tokenFacingAngle))
AffineTransform.getRotateInstance(Math.toRadians(tokenFacingAngle - offsetAngle))
.createTransformedShape(lineShape));
}
case CONE -> {
Expand Down

0 comments on commit 0df9669

Please sign in to comment.