I'm fairly new to Box2d, I've managed to make a game where objects spawn at the top of the screen, they fall and you have to catch them in a basket.
I want to measure the force of the impact (different objects have different mass and, if my understanding is correct, should hit with different forces?)
void PostSolve(b2Contact* contact, const b2ContactImpulse* impulse)
NSLog(@"Normal Impulse X %f", impulse->normalImpulses);
NSLog(@"Normal Impulse Y %f", impulse->normalImpulses);
NSLog(@"Tangent Impulse X %f", impulse->tangentImpulses);
NSLog(@"Tangent Impulse Y %f", impulse->tangentImpulses);
This is the code I am using to attempt to log out some kind of data, but it seems to give me the same reading for every single collision. I'm assuming i'm doing something incorrectly. Could someone give me a little direction?.