Let the show begin
We used the following to cause the skater to bend her left leg at the knee and to point her toes out behind her.
The code turned out to be fairly simple.
Listing 4 emulates our earlier interactive method calls.
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 ); |