static function NearestPointQuery(point : Vector2, maxDistance : float, layers : uint, group : string, delegate : NearestPointQueryDelegate) : void
point | The point you want to find nearby shapes to |
maxDistance | The maximum distance to look for nearby shapes. |
layers | The Chipmunk layer bitmask you want to query against. |
group | The Chipmunk group identifier to filter out. |
delegate | The delegate function that will be called for each nearby shape. |
Iterate all the shapes within maxDist
of point
by calling delegate
for each.
Shapes are filtered using the group and layers in the same way as collisions. TODO variations