Collision response?

Jun 4, 2011 at 8:16 AM

Hi, I m trying to create a game using Farseers physics.  I ve created all the bodies and all the physics are working fine.  

I m facing a problem with the collision response.

How do i set a bool like if body1 is colliding with body2, then it should be set to true else change it to false.


Jun 5, 2011 at 9:00 AM

try the Fixture.OnCollide event and make a function like this

public bool Collide(Fixture fix1, Fixture fix2, Contact