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

Using root motion to create flying characters


We've seen a lot of "hovering" monsters in games in the past, but creatures flying in full 3D space are still a quite fresh and tasty feature. Creating a behavior of such a monster with code is challenging, but we can use animations to make it both easy and great looking.

Getting ready

To create a flying creature in this recipe, we need one animation without root motion, Idle (hovering in place), and nine animations with root motion: FlyingForward (flying straight forward), FlyingForwardUp (flying forward and increasing altitude at the same time), FlyingForwardDown (flying forward and decreasing altitude at the same time), FlyingLeft (flying left in circles-the same way as the WalkLeft animation in previous recipes), FlyingRight (flying right in circles), FlyingLeftUp (flying left in circles with increasing altitude), FlyingLeftDown (flying left in circles with decreasing altitude), FlyingRightUp (flying right in circles with increasing altitude...

lock icon
The rest of the page is locked
Previous PageNext Chapter
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