Hi all,
I have a translate gizmo and scale gizmo working but I have the behavior on Y not good.
I use an intersection test with a plane of normal (0,0,1) which is the same as X-Axis.
The problem is when you are near of parallel or parallel that doesn't works.
A way to handle that correctly exists or a dot product is needed to disable the selection of axis when near of parallel ?
Is it better to use a plane of normal (0,1,0) and use dot product of intersection delta with forward (only X and Z) of camera to compute the delta on Y ?
Maybe easier option I have in head is to oriente the plane to always be front of the camera but up always up of the gizmo, maybe that's the best option ?
Thanks for the help