Reader small image

You're reading from  Unity 5.x Animation Cookbook

Product typeBook
Published inMay 2016
Reading LevelExpert
PublisherPackt
ISBN-139781785883910
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Maciej Szczesnik
Maciej Szczesnik
author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik

Right arrow

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:

  1. Open both objects in your 3D package (we are using Blender in this example).
  2. 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...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Animation Cookbook
Published in: May 2016Publisher: PacktISBN-13: 9781785883910

Author (1)

author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik