Hello
I am trying to achieve something like this: https://asgordon.github.io/rotodrag-js/
I am creating a table top touch screen app and users can approach the table from any angle and select an element of the app to open a modal.
As I have no idea which side of the table the user is facing I have no idea which orientation to use for the modal.
Hence I would like it so if the user drags the modal towards them it orientates based on the angle the finger is dragging.
I would like the modal to stick to the finger similar to how it does in the link above.
I have seen an old example using gsap from 2015 but the draggable does not appear to stick to the finger and tends to drift off. https://codepen.io/osublake/pen/KwbxNX
Has anyone got an example of this functionality working with gsap?
I had implemented dragging and rotating separately like this https://codepen.io/antdev/pen/jOagBVq
But I would much prefer the functionality of the rotodrag example above.
Edited to add, I have just found this example but it doesn't use Draggable. I need this to work so when you drag the modal it moves and rotates.
https://codepen.io/GreenSock/pen/KKgZJMz
Thanks
Anthony