How to stick player to the surface effector?

Hi.

I’m making a simple snowboard game, THPS/Ollie Ollie style, and implemented simple system of grinding on rails: 196032-grind.gif

The rails are surface effector, moving our little snowboarder onwards.

What I’m trying to figure out, is how to stick player character to the rail. I still want player to be able to jump, when he presses SPACE, but I don’t want this:
196679-jumpingoffgrind.gif
See how the player character detaches from the rail on the “slope”?

What can I do to stick him to the rail, but still enabling him to jump, and use normal physics when the rail ends?

Thanks in advance for all the help :slight_smile:

For now I worked around it, by putting trigger that increases player’s mass, right at the top of the “hill”, and another one that decreases it right after.

This looks really janky though, I would love to know another way if anyone has any ideas :slight_smile: