Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
I found something pretty useful for rendering the rope 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
I am trying to get the ropes in place as you suggested. The author of the tutorial recommended that the vRope.h and classes be modified to take only one point/body and the update loops modified to include the last point (to get a free hanging rope). I've tried this but it's not working. I don't know what I am doing wrong. – Terry Hilmann Feb 16 '12 at 9:21
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.