Chipmunk
.NearestPointQuery()static function NearestPointQuery(point : Vector2, maxDistance : float, layers : uint, group : string, delegate : NearestPointQueryDelegate) : void
point | The point at which you want to find the nearest shape. |
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 a certain distance of a point.
Shapes are filtered using the group and layers in the same way as collisions. TODO variations