CedricGuillemet / ImGuizmo

Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to rotate proportionally to mouse delta x/y

eugeneko opened this issue · comments

I think most of the tools (Unity, 3ds Max, Blender?) rotate with fixed speed, e.g. 5 degrees per mouse delta x.
While ImGuizmo rotates based on cursor position, therefore it's nearly impossible to precisely rotate object if rotation axis is almost parallel to the screen. Example:

image

How can I implement this feature, so I can maybe make a PR, or, at least, have it for myself?

PS: I genuinelly don't understand how that's not a feature after all these years.

starting point :

gContext.mRotationAngle = ComputeAngleOnPlan();