Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity Character Animation with Mecanim

You're reading from   Unity Character Animation with Mecanim A detailed guide to the complex new animation tools in Unity, packed with clear instructions and illustrated with original content in the context of a next generation zombie apocalypse adventure game

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781849696364
Length 290 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Jamie Dean Jamie Dean
Author Profile Icon Jamie Dean
Jamie Dean
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. The Zombie Attacks! 2. Rigging Characters for Unity in 3ds Max and Maya FREE CHAPTER 3. Interacting with the Environment 4. Working with Motion Capture Data 5. Retargeting Animation 6. Talking Heads 7. Controlling Player Animation with Blend Trees 8. Implementing Ragdoll Physics 9. Controlling Enemy Animation with AI and Triggers Index

Adding more Avatar masks

In the last section, we used a mask to blend in a different leg animation. Here we will create more Avatar masks to use the two walk sequences together to create more variations:

  1. In the Project panel, click the PACKT_Masks folder to view its contents in the Assets panel.

    The folder contains two additional Avatar Masks: z_Arms and z_HeadChestHands.

  2. Select the new masks one at a time by clicking them in the Assets panel to see how they are set up:
    • For z_Arms only, the arms and hands are highlighted in green
    • For z_HeadChestHands, everything except the head, chest, and hands are masked
    Adding more Avatar masks

    In order to vary the animation masking for each zombie, we need to set each one up with its own animator controller.

  3. Click the PACKT_Controllers folder in the Project panel.
  4. Select the asset ch5_3_1 and duplicate it using the keyboard shortcut Ctrl + D (Cmd + D if working on a Mac).
  5. Select zombie_m2 in the Hierarchy panel.
  6. Drag the controller ch5_3_2 into the Controller field beneath the Animator...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image