Third Person Camera template – UPBGE / BGE- By Mobius
From author´s post in Blender Artist forums:
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!
![]()
EDIT:
Did a bit more work on the camera. The updated file is in a post below.
3rdPersonCamera_v2.blend 51 (434 KB)
Forgot to mention this before.
Feel free to use the code for whatever you want, commercial or otherwise. I wouldn’t mind being credited though.
Here is the link in dropbox, and as the author mentioned before, there is no need for permission to use it, but if you want to give some credit it would be nice.