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

Popular posts

  • No popular posts!

Follow us!

"@mux213 cool!"
"@mux213 I would say the time spent on terrain is not wasted at all :-)"
"@mux213 so you are in Italy and you don't tell me anything? :-D"
"@mux213 will be possible varying the texture of the particles too?"
"@mux213 awesome, it would be even better if you could add some randomness in the grass particles"
Skip to toolbar