Synchronizing animation of multiple objects
In a cutscene, we have to synchronize animation of multiple objects in time. This recipe shows how to do it.
Getting ready
To follow this recipe, you will need an animated character and an animated object. You can download the provided example Unity project and go to the Chapter 08 Animating Cutscenes\Recipe 03 Synchronizing animation of multiple objects
directory. You can find theĀ Example.unity
scene there. If you play the game, you will see a character kicking a soccer ball. Both objects are animated and synchronized. You can find the needed animations in theĀ Animations
directory:
Synchronized animation of the ball and a the character kicking it
How to do it...
To synchronize animation of multiple objects, follow these steps:
- Open both objects in your 3D package (we are using Blender in this example).
- Synchronize both objects' animations in the 3D package. In our example, the animation has about 160 frames. Both objects have the same length of animation...