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 Park , adding to the creepy atmosphere.

3 points

Nice. Now just if you could make it more physics’y. As in, make it go faster when it falls downwards and make it look like it is putting in extra effort, in cases it is going upwards, higher than what momentum would take it.

If you feel like doing this, I’d suggest using parameters for:

  • gravity
  • momentum
  • friction, so just reduce momentum based on traveled distance
  • minimum speed, to make sure it keeps going and that will look like it is using its motors to keep running
permalink
report
reply
1 point

Also my immediate thought is that the End of the track when it connects to the Start isnt doing it with derivatives and therefore looks not smooth/shockfree.

permalink
report
parent
reply
2 points

That loop is so satisfying :)

permalink
report
reply
2 points

permalink
report
reply
1 point

2001 called, it wants to buy your screensaver and put it on 3,000 asset shovelware CDs.

permalink
report
reply

Godot

!godot@programming.dev

Create post

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

  • Posts need to be in english
  • Posts with explicit content must be tagged with nsfw
  • We do not condone harassment inside the community as well as trolling or equivalent behaviour
  • Do not post illegal materials or post things encouraging actions such as pirating games

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

  • The icon is a modified version of the official godot engine logo (changing the colors to a gradient and black background)
  • The banner is from Godot Design

Community stats

  • 820

    Monthly active users

  • 485

    Posts

  • 1.7K

    Comments