So I have a climbable rope for my game, comprised of a bunch of tall & narrow fixtures/bodies.
I prototyped in R.U.B.E. and this demonstrates the issue quite nicely.
Whether I attach the player or not, I can apply (what appears to be a great deal of) force to my rope (fixtures) and one or two of the joints will "break" and be unable to return back to their original position until I pull the bodies back together "manually."
When in my own code my player wants to climb the rope, I add a distancejoint between him and the topmost fixture that's behind him. As he climbs, I check if his waist is above the top of the distancejoint.If it is, I destroy it and create a new joint. This works beautifully, EXCEPT THAT I'm getting the same behaviour as in RUBE: my "rope" (chain of bodies) stretches.
I have tried setting my player's main body fixture's density to zero, and separately I have set his whole GravityScale to 0, but the same always happens. He's not that heavy!
already broken in r.u.b.e.
https://s3-eu-west-1.amazonaws.com/lode ... njoint.PNG
while breaking in my code...
https://s3-eu-west-1.amazonaws.com/lode ... joint2.PNG
I prototyped in R.U.B.E. and this demonstrates the issue quite nicely.
Whether I attach the player or not, I can apply (what appears to be a great deal of) force to my rope (fixtures) and one or two of the joints will "break" and be unable to return back to their original position until I pull the bodies back together "manually."
When in my own code my player wants to climb the rope, I add a distancejoint between him and the topmost fixture that's behind him. As he climbs, I check if his waist is above the top of the distancejoint.If it is, I destroy it and create a new joint. This works beautifully, EXCEPT THAT I'm getting the same behaviour as in RUBE: my "rope" (chain of bodies) stretches.
I have tried setting my player's main body fixture's density to zero, and separately I have set his whole GravityScale to 0, but the same always happens. He's not that heavy!
already broken in r.u.b.e.
https://s3-eu-west-1.amazonaws.com/lode ... njoint.PNG
while breaking in my code...
https://s3-eu-west-1.amazonaws.com/lode ... joint2.PNG