Actor point towards mouse
Hey guys,
I know its been discussed before, but I cant find the solution, and the how-to link is a dud. How do you get an actor to point towards the mouse?
Thanks!
-Jobo
I know its been discussed before, but I cant find the solution, and the how-to link is a dud. How do you get an actor to point towards the mouse?
Thanks!
-Jobo
Comments
vectorToAngle(self.position.x-mouse.position.x,self.position.y-mouse.position.y)
thanks!