I have a simple animation in Cocos2d Chipmunk with the tasks:
- One round shaped sprite situated in the center of the screen, rigid body type. Center of gravity 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.
So the questions are:
- How to reassign the vector of gravity to the center of the screen?
- How to implement collision detection between rigid body types in Cocos2d Chipmunk?
Thanks, colleagues!