Better Camera


Some Godot’s user contacted me because they saw some screen captures of the game so they asking me for sharing the code used for move the camera and make it follow tha player’s car. So, here you can find the files and a mini tut on how to integrate in your game. Hope this may be useful.

The package consists in a scene containing the script and the nodes it needs for running. The camera will try to follow target object and to avoid of intersecting ground and solid objects. Target Object tells to the camera what node must be followed. If camera stucks for some reason, a Max Distance parameter trigger a reset camera action. Camera Height and Camera Distance set the desired position of the camera relative to the target object, Camera Position sets the side of the target object where the camera lies.

Zip file containing the scene cam be downloaded from here

Popular posts

  • No popular posts!

Follow us!

"@reduzio sweet! really needed"
"@alejo9719 very slowly at the moment because we have to finish others projects first"
"@nunodonato @reduzio often a single color is not enough for make to gracefully disappear tall objects like building…"
"@reduzio what about an option for blending objects affected by the fog with the skybox/panorama? It would be useful for outdoor scenes"
Skip to toolbar