Tell me more ×
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 an object get attached on a collision point to a circle that is rotating, but the player needs to get attached with a constant point on the player. For example the player is moving back and forth and when the user touches the screen and the player jumps up but what I need is that when the player collides with the circle it attaches it's legs to it and continues rotating with the circle. So I wanted to know how to make this kind of collision joint in Cocos2d Box2d?

share|improve this question
It isn't really clear to me what you're trying to do. Should the player be able to move on the circle or is the player always rotating with the circle? The exception being a jump, where the player jumps "up" relative to his current location, but the circle keeps spinning? Is that correct? – bummzack Jun 27 '12 at 15:00
Maybe I'm thinking to simple here, but why don't you just make the collision detection as usual and as soon as the player hits the circle, you let the circle disappear and change the players animation to one where the player has the circle. – Blade Jun 27 '12 at 16:51

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.