Better Camera

Nov
09

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

Skip to toolbar