This project has moved and is read-only. For the latest updates, please go here.

Determine the distance between objects edges

Jan 5, 2009 at 11: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?


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.


Jan 5, 2009 at 10: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 8:10 AM
Thanks, I am looking forward for this in the new versions.