Trying to figure out how to use NearestPointQuery

Chipmunk2D Bindings for the Unity3D engine

Trying to figure out how to use NearestPointQuery

Postby ensomniac » Mon Nov 18, 2013 7:50 pm

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
User avatar
ensomniac
 
Posts: 17
Joined: Thu Sep 05, 2013 1:54 pm

Return to Chipmunk2D for Unity

Who is online

Users browsing this forum: No registered users and 1 guest

cron