I’m working on a Jet Set Radio-inspired game, and I’m trying to get rail grinding working. I’ve tried using splines and it didn’t work out too well, so after some searching I managed to find this asset that generates a mesh collider specifically for rails. The issue here, though, is I don’t know how I’d keep my character aligned to it while they’re on it.
Add a new transform to the board, and make a script that moves the player so that the new transform is always touching the rail. Then move the point down the rail at any speed you want. You would have to set up a path for the point to follow, which would probably be another script as well.
Make sure to include a way so that the player can jump on at any point, and still be able to start grinding from there, instead of being at the ends only.