public void my_first_method ( ) {
|
| |
doTogether { |
| |
aliceLiddell .turnToFace( whiteRabbit.tail ); |
| whiteRabbit .turnToFace( aliceLiddell ); |
| } |
| doTogether { |
| |
whiteRabbit.leftLeg.foot .turn( BACKWARD , 0.1 revolutions ); duration = 0.25 seconds |
| whiteRabbit.rightLeg.foot .turn( BACKWARD , 0.1 revolutions ); duration = 0.25 seconds |
| whiteRabbit .move( DOWN , 0.08 meters ); duration = 0.25 seconds |
| } |
| doTogether { |
| |
whiteRabbit.leftLeg.foot .turn( FORWARD , 0.1 revolutions ); duration = 0.25 seconds |
| whiteRabbit.rightLeg.foot .turn( FORWARD , 0.1 revolutions ); duration = 0.25 seconds |
| whiteRabbit .move( UP , 0.08 meters ); duration = 0.25 seconds |
| } |
| whiteRabbit .move( UP , 0.5 meters ); style = BEGIN_ABRUPTLY_AND_END_GENTLY duration = 0.25 seconds |
| whiteRabbit .move( DOWN , 0.5 meters ); style = BEGIN_GENTLY_AND_END_ABRUPTLY duration = 0.25 seconds |
| camera .setPointOfView( aliceLiddell.lowerBody ); duration = 0 seconds |
| whiteRabbit .say( Oh dear! I'm going to be late! ); |
| whiteRabbit .turn( RIGHT , 0.25 revolutions ); |
| camera .move( FORWARD , 0.1 meters ); |
| for (int index=0; index< 10 times ; index++) { |
| |
doTogether { |
| |
camera .turnToFace( whiteRabbit ); duration = 0.25 seconds |
| whiteRabbit .move( UP , 0.5 meters ); style = BEGIN_ABRUPTLY_AND_END_GENTLY duration = 0.25 seconds |
| whiteRabbit .move( FORWARD , 0.5 meters ); duration = 0.25 seconds |
| } |
| doTogether { |
| |
camera .turnToFace( whiteRabbit ); duration = 0.25 seconds |
| whiteRabbit .move( FORWARD , 0.5 meters ); duration = 0.25 seconds |
| whiteRabbit .move( DOWN , 0.5 meters ); style = BEGIN_GENTLY_AND_END_ABRUPTLY duration = 0.25 seconds |
| } |
| } |
| } |