English subtitles

← Two Clock Hands - Interactive 3D Graphics

Get Embed Code
3 Languages

Showing Revision 5 created 05/24/2016 by Udacity Robot.

  1. You'll need to use an Object3D to let you rotate after translation. Here's my
  2. solution for the minuteHand. The cube is translated to the correct pivot point
  3. by the position. That does't change. A minuteHand is then added and then rotated
  4. into place. This new object is then added to the scene. It's this minuteHand
  5. object that undergoes that rotation gives us what we want. Similar code is added
  6. for the hour hand.