How to apply "swinging" to a rope...??
Posted: Wed Mar 16, 2011 9:41 am
Hello All!
I have created a rope class using rects and pivot joints. It works great and looks realistic, I'm struggling with how to make it swing though. I have tried applying impulses at time interval, but you can probably imagine how that turned out lol. I want my player body to be able to jump from rope to rope, but I want to be able to create a swinging effect (for ropes that are farther apart) perhaps by pressing a button apply an impulse while button is pressed, or perhaps a force that gets multiplied based on how long the button is held and then reset forces when button is released. (Im not sure if I should apply it to just the bottom segment or all segments) Anyone have any suggestions?
The other issue I have, is that I want a collision to occur between my player and the rope segments, but I also need the player to stay "attached" to the rope . Suggestions?
Thanks for your time!
Harvey
I have created a rope class using rects and pivot joints. It works great and looks realistic, I'm struggling with how to make it swing though. I have tried applying impulses at time interval, but you can probably imagine how that turned out lol. I want my player body to be able to jump from rope to rope, but I want to be able to create a swinging effect (for ropes that are farther apart) perhaps by pressing a button apply an impulse while button is pressed, or perhaps a force that gets multiplied based on how long the button is held and then reset forces when button is released. (Im not sure if I should apply it to just the bottom segment or all segments) Anyone have any suggestions?
The other issue I have, is that I want a collision to occur between my player and the rope segments, but I also need the player to stay "attached" to the rope . Suggestions?
Thanks for your time!
Harvey