Collision event - Edge Detection

Topics: Developer Forum, User Forum
Jul 19, 2011 at 9:26 PM

Hey guys,

During a collision, I would like to find out which edge of a rectangular body the collision is taking place on;


public bool rectangle_OnCollide(Fixture f1, Fixture f2, Contact contact)
    //conditional logic based on edge


So we have the contact available in there, but I don't have access to the ContactEdge or the contact list or anything that would help me determine where the collision is taking place on the surface of the bodies.

I feel like the answer is staring me in the face, but I still can't see it after a bunch or reading and Google searches.