Manual:

Tutorials:

API:

Chipmunk.NearestPointQuery()

static function NearestPointQuery(point : Vector2, maxDistance : float, layers : uint, group : string, delegate : NearestPointQueryDelegate) : void

Parameters:


pointThe point you want to find nearby shapes to
maxDistanceThe maximum distance to look for nearby shapes.
layersThe Chipmunk layer bitmask you want to query against.
groupThe Chipmunk group identifier to filter out.
delegateThe delegate function that will be called for each nearby shape.

Description

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