I am developing game using LibGDX and Box2D . I want to get the force or the impulse when two bodies are collided , But I cant find the right way to do that , how can I use contact listener for getting that impulse or force ?I cant get the impulse using ContactImpulse parameter in postSolve method . Who can help me ?
new ContactListener() {
@Override
public void preSolve(Contact contact, Manifold oldManifold) {
// TODO Auto-generated method stub
}
@Override
public void postSolve(Contact contact, ContactImpulse impulse) {
// TODO Auto-generated method stub
}
@Override
public void endContact(Contact contact) {
// TODO Auto-generated method stub
}
@Override
public void beginContact(Contact contact) {
// TODO Auto-generated method stub
}
};