how do you make a cannon or something like in mario kart?

in my racing game to have a cannon type thing where when the characters run inside of it, it shoots them out a certain distance.

I could help, but I need a link to your game in order to see what exactly you want.