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!
Cocos2d Chipmunk gravity question
-
- Posts: 2
- Joined: Sat Jul 21, 2012 9:25 am
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Cocos2d Chipmunk gravity question
For posterity, original question answered on the Cocos2D forums:
http://www.cocos2d-iphone.org/forum/top ... ost-171187
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 2
- Joined: Sat Jul 21, 2012 9:25 am
- Contact:
Re: Cocos2d Chipmunk gravity question
Thank you very much for your patience to newbies, Scott! )
Who is online
Users browsing this forum: No registered users and 11 guests