Skip to Content
Unity in Action, Third Edition
book

Unity in Action, Third Edition

by Joseph Hocking
January 2022
Beginner
416 pages
11h 53m
English
Manning Publications
Content preview from Unity in Action, Third Edition

8 Creating a third-person 3D game: Player movement and animation

This chapter covers

  • Adding real-time shadows to the scene

  • Making the camera orbit around its target

  • Changing rotation smoothly using the lerp algorithm

  • Handling ground detection for jumping, ledges, and slopes

  • Applying and controlling animation for a lifelike character

In this chapter, you’ll create another 3D game, but this time you’ll be working in a new game genre. In chapter 2, you built a movement demo for a first-person game. Now you’re going to write another movement demo, but this time it’ll involve third-person movement. The most important difference is the placement of the camera relative to the player: a player sees through their character’s eyes in first-person ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Unity Game Optimization - Third Edition

Unity Game Optimization - Third Edition

Dr. Davide Aversa, Chris Dickinson

Publisher Resources

ISBN: 9781617299339Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link