Clock

Transforms are necessary for manipulating objects in modern graphics. In this project, your goal is to create and animate a clock using transforms.

Starter code to practice with the transforms: RenderEngine-changes.h

Rubric:

Create and draw the clock outline vertices No outline : 0 Correct outline vertices : 1
Draw tick marks using matrix transforms No tick marks or no matrix transforms : 0 Has tick marks with matrix transforms : 1
Animate small hand using matrix transform No animation or incorrect : 0 Small hand rotates clockwise : 1
Animate large hand using matrix transform No animation or incorrect : 0 Large hand rotates clockwise : 1
Update position and velocity of the clock (matrix not needed) No updates : 0 Position and velocity updated : 1
Scale the clock on event using matrix transform No scaling : 0 Scales with event : 1
Bounce the clock on event using matrix transform No bouncing : 0 Bounces with event : 1
Rotate Z on event using matrix transform No rotation : 0 Rotates with event : 1
Rotate Y on event using matrix transform No rotation : 0 Rotates with event : 1
All event transforms can be used at same time Incorrect transform order : 0 Correct transform order : 1

Reference solution