CedricGuillemet / ImGuizmo

Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui
MIT License
3.22k stars 907 forks source link

If you scale to 0,0,0 == death #220

Open caxapexac opened 2 years ago

caxapexac commented 2 years ago

No way to go back from 0,0,0 scale ;)

CedricGuillemet commented 2 years ago

Yes, matrix is used for object TRS for handy reason, this was a mistake. You lose orientation with a scale of 0 which is bad. A new API contract with TRS split would fix that. It needs a bit of work but it's the solution to this problem.

caxapexac commented 1 year ago

Any plans on fixing this issue? I think fix should be almost one line long but it would really improve the UX