first-person-camera.md 894 B

First person camera

Explanation

This C# Intermediate tutorial covers the implementation of first person camera. You learn about mouse movement and how to convert that in to a 3d rotation. We setup camera angle limitsand finally we apply movement to a first person character controller.

Code

Camera controller

[!code-csharpfirstpersoncamera]

Character movement

[!code-csharpfirstpersoncamera]