I’ve been gearing up on a side project lately and one of the first things I wanted to work on was a decent camera system. I think I might make a few varieties to see which works best.
The first camera system I’ve created is a Diablo style camera. It stays at the same height and angle regardless of the player’s position. I need to change the character controller for this demo, as it’s designed for an FPS so ‘w’ always walks forward, not up.
This demo is made from a bunch of spare parts found in the Shooter Demo from Unity Technologies, I just turned off a bunch of the actual game and changed the camera script.
The camera script itself is fairly basic, when the player moves, it updates the camera position (x and z) based on the new position, and never changes the y (height) or the angle.
I will need to add in a lot of extra functionality to make this Diablo quality, such as ensuring the player is visible in some way when behind walls (typically done through a “ghost” view technique). I would also like to add in the zooming feature found in Torchlight or Dungeon Hunter. I also need to play some more Torchlight to get the angle a bit better.
