Cocos2d Chipmunk gravity question

Official forum for the Chipmunk2D Physics Library.
Post Reply
AlexGo
Posts: 2
Joined: Sat Jul 21, 2012 9:25 am
Contact:

Cocos2d Chipmunk gravity question

Post by AlexGo »

Hi everybody! Just start playing with Cocos2d and Chipmunk and have a question.
I have a simple animation to do in Cocos2d Chipmunk with the tasks:

One round shaped sprite situated in the center of the screen, rigid body type. Center of gravity vector needs to be located in center of this sprite. From different sides of screen (spontaneously and beyond screen size) other rigid round sprites must fall into central sprite to fill visible screen space.
Sprites should not overlap one another. It's like here from 0:12 - http://www.youtube.com/watch?v=2BxkbXfE ... r_embedded

So the question is:
- How to reassign the vector of gravity for all bodies to the center of the screen?

Thanks, colleagues!
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Cocos2d Chipmunk gravity question

Post by slembcke »

For posterity, original question answered on the Cocos2D forums:
http://www.cocos2d-iphone.org/forum/top ... ost-171187
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
AlexGo
Posts: 2
Joined: Sat Jul 21, 2012 9:25 am
Contact:

Re: Cocos2d Chipmunk gravity question

Post by AlexGo »

Thank you very much for your patience to newbies, Scott! )
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests