Search icon CANCEL
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 3D Game Development

You're reading from   Unity 3D Game Development Designed for passionate game developers—Engineered to build professional games

Arrow left icon
Product type Paperback
Published in Aug 2022
Publisher Packt
ISBN-13 9781801076142
Length 370 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (4):
Arrow left icon
Anthony Davis Anthony Davis
Author Profile Icon Anthony Davis
Anthony Davis
Ryan Stunkel Ryan Stunkel
Author Profile Icon Ryan Stunkel
Ryan Stunkel
Russell Craig Russell Craig
Author Profile Icon Russell Craig
Russell Craig
Travis Baptiste Travis Baptiste
Author Profile Icon Travis Baptiste
Travis Baptiste
Arrow right icon
View More author details
Toc

Character controllers

Now that we have put together a character design, model, and rig, we need to set up a controller to have them react to inputs. There are two general methods for character controllers. The built-in character controller that Unity provides will allow you to have a character walk around, up stairs, and easily build in further functions of interaction, but it has its limits. The largest limitation is that it is not used as a physics object. If you need your character to get pushed around by physics, there is a second option available. The second option is using a Rigidbody and collision capsule with a character script using these as restrictions to the physics engine. Just as you may have come to expect by now, to choose the correct option here we need to ask questions! The following are some examples:

  • What are the primary mechanics?
  • Do I need physics for movements?
  • How many other limitations will there be for my character?

After some...

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