I'm trying to achieve a "grind" effect when a skateboarder or rollerblader slides along a rail or edge of something.
I'm guessing that my player object would need to be overlapping the edge or rail and then hit an action button to start the effect. I'm having a hard time figuring out in my mind how I would set the players position back to meet up with the rail appropriately and maintain their original speed and direction though. I'd like it so they could go left or right on the rail, so the speed and direction they'd maintain would have to be whatever speed and direction they were already traveling at before they started the effect.
Does this make sense? thoughts?