F3XTeam / RBX-Building-Tools

A set of powerful, easy building tools for ROBLOX.
38 stars 22 forks source link

Surface alignment produces inaccurately aligned orientations in certain cases #96

Closed GigsD4X closed 7 years ago

GigsD4X commented 7 years ago

In certain, hard-to-pinpoint odd cases, the current method for aligning the surfaces of dragged parts occasionally produces unexpected orientations, such as being properly aligned on all axes except along that of the surface normal, where it could for example be off by the same amount that it is adjusted to for aligning on a different axes.

It seems this may be an issue with using euler angles to apply the orientation adjustments, and if this is the case, it could be fixed by manually producing the rotation matrix.

GigsD4X commented 7 years ago

This has been fixed by 7a979bf5795ca87edc9e0cf6fc38084529afaadd and 3ecf48da2653b14ae7219eaac15888cae4fb55e8.