I’m so happy about how this script that generates a roller coaster track from a Curve3D turned out!

You can find the code on GitHub.

Be sure to download track.gd, track_generation.tscn and meshes/track_sleeper_rollercoaster.res and fix the path to the mesh on the code.

The roller coaster will be part of my game horror Delta Kayak , adding to the creepy atmosphere.