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
HoloLens Beginner???s Guide

You're reading from   HoloLens Beginner???s Guide Join the AR revolution with HoloLens

Arrow left icon
Product type Paperback
Published in Apr 2017
Publisher Packt
ISBN-13 9781786464729
Length 376 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jason M. Odom Jason M. Odom
Author Profile Icon Jason M. Odom
Jason M. Odom
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface Welcome to the New World FREE CHAPTER HoloWorld I am in Control User-Friendly Interface Now That Is How It Should Sound Not So Blank Spaces The Tools of the Trade Share What You Have Got Putting It All Together Fixing Problems

Mecanim


Now that we have two animated rectangles, we will take a quick look at Mecanim. Mecanim is a state machine-based controller for playing animations or clips. Without getting too deep into this heavily complex animation solution, we can say that this allows us to change an object's animation with simple variables.

For instance, a character can have a speed parameter. This parameter can be set up in our code to be changed based on how far the player pushes up on the game controller. Let's imagine that the speed variable is from 0 to 10. We also have three animations: standing still, walking, and running. If the user is not pushing the game controller up at all, the variable is 0; if they are halfway, then 5; if they are all the way, then 10.

The Mecanim window

Let's take a quick overview of the Mecanim or Animator view. In order to see our Animator view, we need to click on the Window menu item and click on the Animator option; as shown in the following screenshot.

First, you will notice...

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