Smooth Camera



This example features simple player input controls with a smooth 3rd person follow camera.

Project Files

 

Simply handles user input with document.onkeydown events and applies it accordingly to player mesh.

 

Apply player matrix to camera matrix with an offset. Finally interpolate between the current camera position and the desired camera position with Math.lerp function.