Hi,
I noticed that when I add a collision pair function:
cpSpaceAddCollisionPairFunction(space, 0, 1, &damage, self);
The collision loses it's physics attributes, I mean - I want to detect a collision between two shapes and do something like decrease health value or something like that, but keep the physics.
Simply put, a ball hits an enemy, the enemy loses health, the ball bounces off the enemy.
Thanks in advance,
Natan Avra.