I have a static body with a fixture that is a loopshape. It's big and irregular.
I have another body at position P.
I want to figure out how far away P is from the loopshape. In other words, I want the minimum distance I'd have to travel to intersect with any part of the loopshape.
Any ideas? Loop through vertices on the loopshape to find the closest one, and then do some trig?
Or cast a bunch of rays from P...?