[Unity] Flight Camera Character Controller

Today, I'll show you a good exercise I made to manipulate quaternions. In extra you got a 3C structure for a flight game.

I chose to make a flight behavior because of rotation complexity. Today we always use physics to drive vehicles in video games, but this exercise is focused on quaternions manipulations, so all the behavior is driven by quaternions.

Main Features:

- Smooth TPS camera
- Camera switch (FPS / TPS)
- Auto replace character rotation: 3 different ways to smoothly reset character rotation (All Axis, Per Axis, None)



- Z/S: pitch
- Q/D: roll
- Shift: boost
- Left click / Right click: dodge left / right (lateral movement with roll as in some Star Wars video games)


- Download Windows standalone
- Download Unity project


  1. In the blog post, at the bottom:


Post a Comment

Popular posts from this blog

[Unity][Shader] Stylized Fog

Tetris in C++ with SFML