rotating pointer
Saturday, July 4, 2009 by vAIp33r | Discussion: DesktopX
Hello all!
I'm working on a theme and I had the idea of making this:

On the pic is the object I want to code - a stick-like object to follow the cursor and always rotate so that it points towards the center of the circle. The only thing I simply can't do is to get the rotation just right. I tried a lot of things but my neglection of trigonometry and math as a whole for the past year has unfortunately left severe consequences ![]()
Long story short - I need to calculate the angle of the stick object while knowing only cursor and orb's positions.
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!






