LogicalError / realtime-CSG-for-unity

Realtime-CSG, CSG level editor for Unity
https://realtimecsg.com
MIT License
735 stars 77 forks source link

X and Z axes transposed when creating a Box? #323

Closed DavidAntliff closed 1 year ago

DavidAntliff commented 3 years ago

I'm very new to realtime-CSG so apologies if this has already been reported, or I've missed something.

When I go to create a Box using the Generate menu, and manually type values into the Height, Length and Width fields, the axis that the rectangle changes does not match the label on the field.

Specifically, the "Length (X)" field seems to set the dimension in the local Z axis. The "Width (Z)" field seems to set the dimension in the local X axis.

For example, if I create a box with Height 0.1, Length 1.0 and Width 0.5, then it ends up creating a "brush" with the local Y axis height of 0.1, but local X axis of 0.5, and local Z axis of 1.0.

It's as if the X and Z axes are transposed.

I'm using v1.562.

nukeandbeans commented 2 years ago

This issue is caused by Scripts/View/GUI/EditModeGUI/EditModes/Generators/Generator.Box.GUI, where generator.Length and generator.Width seemed to have gotten mixed up with each other and used in the wrong double field.

This will be fixed when #349 gets merged.

Janooba commented 2 years ago

Confirmed fixed in #349 using 2019.4.31f1