Graphics Reference
In-Depth Information
6. Choose Record Animation from the Game options and press P to run the game. Press Esc when the
simulation has run its course. After this finishes, you can press Alt+A to run the animation. You'll see
that it looks something like Figure 8-28 .
Figure 8-28 The animated simulation
7. As you can see, the sphere comes to rest against the second cube at about frame 131. Knowing this,
it is possible to key the motion of the armature so that the second cube will “kick” the sphere at exactly
the right moment. To do that, key the beginning and ending of the kicking movement about 20 frames
beforeandafterthepointwherethecubeshouldimpact thesphere,aroundframes111and151,asshown
in Figure 8-29 . As you did with the starting cube, set up the armature's logic to play the animation in the
game engine.
 
 
 
Search WWH ::




Custom Search