This repo is just the code from a video I made about grinding rails made using Unity's spline tool.
You need the following packages:
- Splines
- Input System
I also have Cinemachine for this project, but you might not need it for your own.
The project scene consists of a basic character controller that you can move with WASD, some rails to grind, and some colliders on the outer walls to keep you in-bounds.
Please watch the video for a breakdown on how the code works, although the files have been commented.