Skip to content

Commit

Permalink
fix: rotation in signalbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Oct 29, 2024
1 parent b5ec39c commit c878970
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private void localAdd(final ModeSet modeSet) {
final UIEntity entity = new UIEntity();
if (!modeSet.rotation.equals(Rotation.NONE)) {
final UIRotate rotation = new UIRotate();
rotation.setRotateZ(modeSet.rotation.ordinal() * ((float) 90));
rotation.setRotateZ(modeSet.rotation.ordinal() * ((float) Math.PI / 2.0f));
entity.add(rotation);
}
entity.add(new UIIndependentTranslate(0, 0, modeSet.mode.translation + 1));
Expand Down

0 comments on commit c878970

Please sign in to comment.