huxingyi / dust3d

Dust3D is a cross-platform 3D modeling software that makes it easy to create low poly 3D models for video games, 3D printing, and more.
https://dust3d.org/
MIT License
2.98k stars 221 forks source link

Model rotation improvement #130

Closed CarlOlson closed 2 years ago

CarlOlson commented 2 years ago

The way rotation currently works on the vertical axis is very unintuitive. This is a fix to make the way a model rotates behave similarly to Blender and other 3D modelers.

If the object's horizontal axis rotation is greater than +-180 degrees we invert the rotation direction. Since this transformation would not be continuous, we keep the rotation direction for the duration of the mouse movement.