Finding separation during collision

Topics: User Forum
Nov 23, 2010 at 8:55 PM

I'm relatively new to using Farseer and just want a collision system without all the physics.  At the moment, I can get what I want by using Fixture.IsSensor.

The problem I'm trying to solve though is when two objects collide.  Upon collision, I want to child one object to the other.  That part is easy enough, the issue is that at the time of collision the objects may be overlapping to some extent.  In Farseer2 the OnCollision delegate had contact information that told me what the separation was between the two objects.  By using the separation I could make sure the two objects were attached to each other at their edges.  In Farseer3, I haven't found any way to get this type of information.

So, my questions are:

1) When handling OnCollision is there a nice way to the get the separation between the two fixtures?

2) Is using Fixture.IsSensor really the best way to get collision without physics?

 

Thanks!