Page 1 of 1

Trying to figure out how to use NearestPointQuery

Posted: Mon Nov 18, 2013 7:50 pm
by ensomniac
Hey Guys,
Quick question - I'm a little confused as to how NearestPointQuery is implemented. I had previously implemented NearestPointQueryNearest successfully like this:

Chipmunk.NearestPointQueryNearest(pos, size, info);

But I now need to find all shapes within a certain radius of a specific position, not just the closest one. It seems like the best approach is NearestPointQuery but I can't understand how I'm supposed to hook this up using Unity Script. I keep getting overlord errors regardless of what I pass into NearestPointQuery.

I can't find an example of how I would implement this in Unity Script. Any tips?

Thanks
Ryan