diff --git a/docs/src/progress/renderertodo.md b/docs/src/progress/renderertodo.md index 90a4f612..4c8a4f0c 100644 --- a/docs/src/progress/renderertodo.md +++ b/docs/src/progress/renderertodo.md @@ -1861,6 +1861,7 @@ Filter room solver to only include rooms that are enter-able Solve for furniture placement inside rectangular rooms Visualize furniture placement slots AssetDataStrings work +Invert rotation calculation for fab cursor diff --git a/src/main/java/electrosphere/controls/cursor/CursorState.java b/src/main/java/electrosphere/controls/cursor/CursorState.java index 79b8a2f8..f6135ffe 100644 --- a/src/main/java/electrosphere/controls/cursor/CursorState.java +++ b/src/main/java/electrosphere/controls/cursor/CursorState.java @@ -434,8 +434,8 @@ public class CursorState { */ public static Quaterniond getBlockRotation(int rotationVal){ int tempVal = rotationVal; - int xRotation = tempVal & 0x3; - int yRotation = tempVal >> 2 & 0x3; + int yRotation = tempVal & 0x3; + int xRotation = tempVal >> 2 & 0x3; Quaterniond rotations = new Quaterniond(); double xRot = 0; double yRot = 0;