Skip to content

Commit

Permalink
Merge pull request #4973 from kwvanderlinde/bugfix/4967-beam-offset-i…
Browse files Browse the repository at this point in the history
…s-backward

Fix light offset for beams to measure counterclockwise as for cones
  • Loading branch information
cwisniew authored Oct 4, 2024
2 parents ba4b9f7 + 0df9669 commit 0ffa3e3
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 0ffa3e3

Please sign in to comment.