Hi.
I’m making a simple snowboard game, THPS/Ollie Ollie style, and implemented simple system of grinding on rails:
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:
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