C#C
C#15mo ago
HeRoX1010!

What the best way to handle splines/rail grinding in Unity?

Hi everyone!
I'm working on a 3D sonic physics engine and I want to integrate splines with a player controller, but most of the tutorials I’ve found only show how to use splines for creating mesh paths or moving prop objects along a path using spline_animate. I'm looking to implement more complex mechanics like:

Rail grinding: The player can move along a spline and jump off at any point, with speed carrying over.
Auto-running sections: The player should be able to transition into a spline-based path, but their current speed should carry over instead of being reset.
The player should also be able to jump between splines dynamically.
How can I go about using splines in combination with a player controller? What are the basics I need to know to get started working on it? Are there any specific techniques or best practices for implementing this kind of system?
Was this page helpful?