Abstract
Unlike Unity, Godot doesn’t ship with any built-in character controllers, neither third-person nor first-person. So, in this chapter, we’ll create a reusable first-person controller rig from start to end in C# for Godot. Once created, we’ll be able to drag and drop first-person controls directly into any scene. The WASD keyboard keys will move the camera forward, left, backward, and right, respectively. Holding down the Shift key enables run mode and the space bar initiates a jump. Mouse movement will control head orientation, and the first-person controller overall will support many physical interactions, including gravity, collisions, ramp movement, and more. See Figure 6-1.
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 Alan Thorn
About this chapter
Cite this chapter
Thorn, A. (2020). Coding a First-Person Controller in C#. In: Moving from Unity to Godot. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5908-5_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5908-5_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5907-8
Online ISBN: 978-1-4842-5908-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books