cursor rotation work
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-05-18 11:44:59 -04:00
parent 62b6c16573
commit 1ee23aa115
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;