Moving a player camera in first-person, and third-person mode
Try out the demo at https://nickmaltbie.com/OpenKCC
GitHub project at https://github.com/nicholas-maltbie
Open-Source Kinematic Character Controller Series Playlist - https://youtube.com/playlist?list=PLFlu9cd6nGXt64a-N063t5hZdpjdIl76p
Project documentation - https://nickmaltbie.com/OpenKCC/docs
How a camera moves is very important for managing a character controller. If it works well, players might not even notice it is even happening.
In this video, I will go over what the requirements for a camera controller are, and how I implemented on in the unity game engine. The camera is a hybrid first and third person controller that uses the new Unity Input System for reading input from the mouse or joystick.
The camera controls use physics based raycasting to stop camera clipping and compute if the model should be hidden or dithered depending on the distance to the player.
Chapters:
Intro 0:00
Overview of the Camera 0:56
Camera Position and Rotation 1:54
Reading Player Input 3:10
Physics Based Camera Clipping 4:18
Visualizing Ray Casting 5:36
Player Dither 6:42
Camera Controls Review 7:39
Outro 8:45
Games in the order they first appear in the video:
* Super Mario Odyssey
* Super Mario 64
* I am Bread
* Minecraft
* Overwatch
* Gary’s Mod
#gamedev #madewithunity #gamedesign