Skip to main content

Player Controller

  • Chapter
  • First Online:
Book cover Pro Unity Game Development with C#
  • 3196 Accesses

Abstract

FPS games (first-person shooter games) are played, unsurprisingly, from a first-person perspective. This means that game events, and the game world, are seen through the eyes of the main game character—as though you were that person in that world. This perspective is perhaps one of the most common kinds in contemporary video games. It’s used in some of the famous and biggest selling games in history, including Call of Duty, Halo, Skyrim, and others. CMOD too will be an FPS game. Consequently, we’ll need first-person behavior. Thankfully, lots of the underpinning coding work for this is created for us, from the standard Unity Character Controller packages (specifically the First Person Controller). However, this package features important limitations that we’ll want to overcome for CMOD. Throughout this chapter, we’ll examine the First Person Controller further, refining and adapting it by creating our own customized PlayerController class with first-person functionality and more besides.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Alan Thorn

About this chapter

Cite this chapter

Thorn, A. (2014). Player Controller. In: Pro Unity Game Development with C#. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6745-4_5

Download citation

Publish with us

Policies and ethics