Hello there,
I am currently working on a platformer and the goal is to have a rope swing that looks like this:
youtube.com/watch
I was able to code the casting of the rope already, but everything after that is a big mess. The momentum at the start and at the end of the rope swing are all over the place. Nothing is fluid and I am looking for something smooth.
I was able to get a rope swing with the orbit behavior, but I encountered several problems. First, when I end the orbit behavior, the character just stops dead in its track and its velocity is straight down instead of swinging what was its orbital momentum a frame ago. And second, the orbit's speed is calculated in degrees per second instead of pixels per second, which complicates things. right now the formulas for the rope swing's speed are wrong.
If you think you can reproduce the rope swing in all it's smoothness like in the youtube video I have shown above please DM me. I don't mind if the orbit behavior is put in the trashcan and a completely different approach is used.
Thank you in advance!