- Home /
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:
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 :)
Answer by KoRnish7 · May 24 at 08:27 AM
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 :)