Make a Ground Rail with Spline

Hi, its my first time using the Forums and speaking english, so sorry if something is wrong.

So, basically i want to make a Grind Rail, like this example:

https://www.youtube.com/watch?v=lAjiWXCvyn8

I want to use spline to manage the path and using the Character Velocity to determine wich way that Character moves, for example: When the player doesn’t have enough speed to across a ramp, he goes down.

What i need to do this?

On the most fundamental level:

  • check the inclination of the spline with dot product
  • accumulate this value - that’s the speed
  • use speed to progress through a spline

You’ll need to add friction as this preserves energy as perfectly as frame time allows it. And input. And a gazillion other things that makes it a game. :innocent:

1 Like

Thanks a lot! This will help me get some logic to know where to start thinking.

1 Like