My current code rotates a frame and follows the mouse, but not directly AT the mouse.

EXAMPLE PICTURE :

http://prntscr.com/bt37k0

GIF :

https://gyazo.com/c9cf88c904d7fa0a961da6d70b1aec5f

Any ideas on how I can make it rotate and point DIRECTLY at the mouse?

4 comments

0

Can't you just add a rotation to the current math?

0

It does rotate like I said, but off-centered to the mouse.

0

I posted a gif above for better explanation.

0

Could you show us the math/code you used?