Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Unity 5.x Animation Cookbook

You're reading from   Unity 5.x Animation Cookbook An advanced solution to all your Animation problems

Arrow left icon
Product type Paperback
Published in May 2016
Publisher Packt
ISBN-13 9781785883910
Length 328 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Szczesnik Szczesnik
Author Profile Icon Szczesnik
Szczesnik
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Working with Animations FREE CHAPTER 2. Working with the Animation View 3. 2D and User Interface Animation 4. Character Movement 5. Character Actions and Expressions 6. Handling Combat 7. Special Effects 8. Animating Cutscenes 9. Physics and Animations 10. Miscellaneous Index

Using root motion for climbing


In this recipe, we will use root motion animations to climb a ladder.

Getting ready

We are going to use the same character as in the Using root motion to steer a character recipe with the Idle, WalkLeft, WalkForward, and WalkRight animations. You should prepare four additional animations: ToClimb (it should start with idle and end with ClimbIdle and should be done "in place" without hip movement), ClimbIdle (a looped animation where our character is idle on the ladder), ClimbUp (a looped animation, where our character moves one ladder step up; it starts and ends with ClimbIdle pose), and ClimbEnd (an animation similar to the EdgeGrabClimb from the Using triggers to grab an edge while jumping recipe). We are going to use the RootMotionSteering.cs script from the Using root motion to steer a character recipe to make the character move. You also need a ladder model with which your ClimbUp animation is synced. You can also go to the Chapter 04 Character movement...

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 $15.99/month. Cancel anytime
Visually different images