realtime-CSG-for-unity icon indicating copy to clipboard operation
realtime-CSG-for-unity copied to clipboard

X and Z axes transposed when creating a Box?

Open DavidAntliff opened this issue 3 years ago • 2 comments

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.

DavidAntliff avatar May 07 '21 07:05 DavidAntliff

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.

nukeandbeans avatar Apr 14 '22 23:04 nukeandbeans

Confirmed fixed in #349 using 2019.4.31f1

Janooba avatar Jun 13 '22 22:06 Janooba