Trying to figure out how to use NearestPointQuery

Chipmunk2D Bindings for the Unity3D engine
Post Reply
ensomniac
Posts: 17
Joined: Thu Sep 05, 2013 1:54 pm
Contact:

Trying to figure out how to use NearestPointQuery

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests