Adding a Third Person Camera
- itzvnodm
- Apr 9, 2015
- 1 min read
1. Visualizing the Player – Just a ball for now.
The player's facing direction using a debug line.
2. Implemented a 3rd person follow camera.
Keeping the player in the view.
The camera does not clip through the world geometry.
No abrupt transitions. Smooth lerp towards and away from player.
3. Made the player's input control view-relative - Pushing the 'forward' button makes the player go away from the camera, regardless of which way the player is facing.
WASD to move the player.
~ to open the debug menu.
UHJK to move the camera in FLY mode and arrow keys to rotate.
Commentaires