For the next animation example, we'll get the egg to wobble and shake before it hatches. We will create a simple animation and make it loop for its duration. To illustrate, we'll make an Animation Clip of the WholeEgg object rattling and then add it to Timeline on an Animation Clip Track.
Shaking an egg
To create a new Animation Clip on the WholeEgg object, follow these steps:
- In Hierarchy, select the WholeEgg object (child of NestAndEgg).
- Open the Animation window (Window | Animation | Animation).
- You should see a message stating, To begin animating WholeEgg, create an Animation Clip, and a Create button.
- Press Create.
- When prompted for a filename, save it as EggShaker Animation.
We saw the Animation window earlier in this chapter. We're going to make a very short, 2-second animation that rotates the egg on the X and Z axes by manipulating the animation...