Maybe a silly question but I haven’t found the answer myself. Is there an easy way to make the scale on the boundingbox gizmo follow the precise location of the mouse?
When on the PG, you scale on any axis by dragging the mouse but the extrusion doesn’t exactly follow the mouse position.
Edit: I note that the scale change is initially about a third the distance I move. However, if I scale past zero (where the drag box stops, but I keep going) then reverse pointer direction and scale bigger, the box scales more quickly than the pointer.
There is always a way to make it better
I’m not sure the dragDistance is using the expected axis. then the scale is approximated using different factors that make it hard to follow and maintain.
I’m wondering if replacing all these computations with a world coordinate is (easily) possible.
At the same time, moving to world space coordinates using active camera will bring its burden. Things will go wild when derivative will get big.
Well, just setting the scaleDragSpeed to 1 did it. I think this should probably be the default? Ah well, I see it doesn’t follow precisely the mouse when the objects are far far away.