LordMysterious Posted September 16, 2018 Share Posted September 16, 2018 Hi All I'm struggling to find any examples of what I need to do online. Basically, I have a dial (think old fashioned safe) that I want to be able to click and rotate infinitely. How would I go about doing this? Thanks Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 16, 2018 Share Posted September 16, 2018 Any drag&drop example, and "Math.atan2" function to get the angle you need to rotate the element. Quote Link to comment Share on other sites More sharing options...
LordMysterious Posted September 17, 2018 Author Share Posted September 17, 2018 Ahhhh, I knew it was atan2. Works a treat, thanks! ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.