Determine the distance between objects edges

Jan 5, 2009 at 10:48 AM
Any idea how I can determine the distance between the edges of two complex objects (polygons) as in the example below in a simple way?

Photobucket

I am trying to change some objects behavior when aproaching the edges of a big senzor object (to try to stay 'inside' the big object). To do this I need to determine the distance not between the center of objects but between their outer bounds.

Thanks

Coordinator
Jan 5, 2009 at 9:35 PM
You will need something like ray casting to do something like that. We are working on getting such functionality into Farseer Physics in the future.
Jan 6, 2009 at 7:10 AM
Thanks, I am looking forward for this in the new versions.