Jump to content

Animating the hands of a clock


DezOnlyOne
 Share

Recommended Posts

I have a clock with hands for hour, minute, and second. While it is not a problem to rotate the hands according to the correct time, I am not getting the correct time. It seems like the hands are opposite where they are supposed to be. Exactly opposite. I put together a playground demo to show what I am doing. Has anyone had experience with this? This same formula was working correctly in THREE.js. 

 

http://www.babylonjs-playground.com/#1JK5E8#8

 

Thanks in advance

Link to comment
Share on other sites

That is better definitely, but I am still running into an issue where the hour hand is in the wrong position. At say 3:30 the hour hand should be mid way between the 3 and the 4. This is not happening for some reason.  Thank you for getting me on the right track though. I wish I was a little better with math. 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...