I’m trying to implement an intuitive way of rotating and translating a set of objects using a transform node:
- rotation works using the left mouse button (smooth transition between x/y rotation near the center of the screen; z rotation near the edges)
- translation works using the middle mouse button (translation axes should always be screen x and y)
- mouse wheel is for zooming
Here’s the PG.
The center of rotation should always be the center of the screen (shown by the red sphere) even after translation. Therefore, I messed with the pivot point, but something is always off.
Any input is highly appreciated.