Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am trying to make a Tarzan like game with Cocos2D and Box2D. I am having issues with the physics - making an object swing from one rope to another. I am not really sure how to do this. Could anyone please help me.

share|improve this question
What have you tried? Do you have the ropes in place? –  bummzack Feb 8 '12 at 7:46
I found something pretty useful for rendering the rope cocos2d-iphone.org/archives/1112. but I don't understand most of the code so i'm having problems using it to solve my issue. –  Terry Hilmann Feb 8 '12 at 8:00
This site isn't the place to ask for a walk-through to build an entire game. That post you linked to looks like an excellent starting-point and should help you getting the ropes in place. Swinging from one rope to the other would be the next step, but it seems like you need the ropes first :) If that stuff is too complicated, I suggest you start with something easier to learn the basics? –  bummzack Feb 8 '12 at 8:08
Yes I understand. it's not that the verletrope code is too complicated. I just don't understand most of the math in the vrope and vstick classes. –  Terry Hilmann Feb 8 '12 at 15:52
I don't think you have to understand all the math behind it, as long as you're able to integrate it and adjust the parameters to your needs. –  bummzack Feb 8 '12 at 17:32

1 Answer 1

up vote 1 down vote accepted

Hey I dont know the exact answer to your question but I think you will find more code in the below link that you can look into for your project.

See the snapshots, I think the developer has used the same project that you have listed in the comments of your question.


share|improve this answer
thanks, very interesting, though a wish the author explained a bit more what he did. –  Terry Hilmann Feb 16 '12 at 9:23
Yeah I too feel that the developer should have given some imfo on how approached this idea. –  Robin Feb 16 '12 at 9:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.