Chipmunk2D Unity Documentation | Main Page | Forum

Manual

Tutorials

API

Classes

Structs

Enumerations

Chipmunk.NearestPointQuery()

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

Parameters


pointThe point at which you want to find the nearest shape.
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 a certain distance of a point.

Shapes are filtered using the group and layers in the same way as collisions. TODO variations