Abstract
Before we give the player any means of moving around, we'll have to set up the player GameObject and provide them with a way of changing the direction they're facing. We'll do that here, implementing our first- and third-person cameras. Both systems will be handled by one script, and the player will be able to press a hotkey to smoothly switch from one to the other.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2020 Casey Hardman
About this chapter
Cite this chapter
Hardman, C. (2020). Mouse-Aimed Camera. In: Game Programming with Unity and C#. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5656-5_34
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5656-5_34
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5655-8
Online ISBN: 978-1-4842-5656-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books