MYR icon indicating copy to clipboard operation
MYR copied to clipboard

Flat-based objects positioned correctly

Open jf-kelly opened this issue 3 years ago • 0 comments

Description

These changes (to setPosition() and setYPos()) make it so that objects with flat bases (box(), cylinder(), etc.) are positioned correctly on the floor when y is set to 0. This was a problem caused by scaling, since the position is set based on the center of the object, which does not change when the scale is changed. So, that is why there were issues with objects being set at y=0, yet not actually being aligned on the ground. As of now, this fix only works for objects with flat bases, but it seems to be an improvement on the current functions in production.

Preview

2022-08-11 (1)

Related Issue

#604

jf-kelly avatar Aug 11 '22 20:08 jf-kelly