How to program an object that sling my character
I wanna program a tree that slings my character when I'm colliding with it and press "E". That slings need to be in a specific direction, and in a specific height. I imagine how would be the algorithm, but I have no idea how would I write that, what methods would I use or what functions would I use. Anyone have an idea? Maybe some related post or video tutorial, anything will help, thanks!!
(English is my second language, so sorry :()
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612195947im_/https://answers.unity.com/themes/thub/images/avi.jpg)