Inconsistent Rotation
ricecake started this discussion in Bug Reporting

Hi, I noticed a weird error when rotating pieces where the angle starts to get slightly off.

Example:
Place any brick in the workshop.
Select the brick.
Press left arrow - brick rotates to 45 degrees, OK
Press left arrow again - brick rotates to 89.980 degrees (instead of 90 degrees)
Press right arrow - brick rotates to 44.980 degrees
Press right arrow again - brick rotates to -0.020 degrees

As far as I've found in my testing, only the left and right arrows have this behavior (the up/down and Home/End rotations seem to be fine), and this slight offset in the angle, once it occurs, remains but doesn't get added a second time, i.e., so continuing to rotate will keep the angles at xx.020 or xx.980).

1 reply · Page 1 of 1
Avatar of Scrubs
Administrator

Yes, I noticed this when I redesigned the workshop code early this year.
I think that this is a problem with floating point numbers and conversion from radian to degree. Not 100% sure though.

Advertising
2 participants
Avatar of Scrubs

LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations are trademarks of the LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, the Mecabricks logo and all content not covered by The LEGO Group's copyright is, unless otherwise stated, ©2011-2024 Mecabricks.