Animate the skater's leg and foot
Write the code shown in Listing 4 and add it to the code that is already in the edit window.
Now play your program
Listing 4. Animate the skater's leg and foot.
// Animate the skater's leg and foot |
iceSkater.leftLeg.lowerLeg .turn( FORWARD , 0.25 revolutions ); |
iceSkater.leftLeg.lowerLeg.foot .turn( FORWARD , 0.12 revolutions ); |