Figured I’d upload this third person camera I’ve been making since I put quite a bit of work into it.
The logic brick setup is extremely simple since it mostly consists of Python code.
In addition to mouse smoothing and zooming, it uses ray sensors to avoid objects that have a “camera blocking” property. For example, if an object passes between the player character and the camera, the camera will jump in front of the object. If there is an obstruction behind the camera, it will move closer to the player to avoid clipping through walls and the like.
I put a couple planes in the scene with the camera blocking property to demonstrate this feature.
Hope you guys find it useful!
Did a bit more work on the camera. The updated file is in a post below.
3rdPersonCamera_v2.blend (434 KB)