Hey,
i'm trying to implement a dimmer switch like component. Lets say i want to implement an ellipse, that, while im dragging on it, rotates around its centerpoint. The rotation should be with respect to the dragging and not a random angle. The Position of the ellipse should be fixed, so that there is no translation, only a rotation around its center.
Anyone ever achieved such an interaction? It drives me crazy. I know that i need to calculate the rotation angle while im dragging, but i cannot sovle it.
Hope anyone has an idea…
Thanks
i'm trying to implement a dimmer switch like component. Lets say i want to implement an ellipse, that, while im dragging on it, rotates around its centerpoint. The rotation should be with respect to the dragging and not a random angle. The Position of the ellipse should be fixed, so that there is no translation, only a rotation around its center.
Anyone ever achieved such an interaction? It drives me crazy. I know that i need to calculate the rotation angle while im dragging, but i cannot sovle it.
Hope anyone has an idea…
Thanks
1