Inconsistent Rotation
ricecake a commencé cette discussion dans 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 réponse · Page 1 sur 1
Avatar de Scrubs
Administrateur

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.

Publicité
2 participants
Avatar de Scrubs

LEGO, le logo LEGO, la minifigurine et les configurations des briques et tenons sont des marques déposées de LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, le logo Mecabricks et tout le contenu non couvert par les droits d'auteur du groupe LEGO sont, sauf indication contraire, ©2011-2024 Mecabricks.