Im a newbie in chipmunk and must say im very impressed with the physics engine, great work



Im having problem with a collision type.
I'm trying to detect a collision between balls with many different color, very similar to crayon ball
http://howlingmoonsoftware.com/iPhoneCrayonball.php
I set all balls to have collision type 1 and add cpSpaceAddCollisionHandler like this:
cpSpaceAddCollisionHandler(space, 1, 1, &collisionBegin, &collisionPreSolve, nil, &collisionSeparate, self);
But all balls doesnt collide with each other.
How do you set the collision type and cpSpaceAddCollisionHandler to achieve same thing like crayon ball?
Many thanks