Chipmunk
.NearestPointQueryNearest()static function NearestPointQueryNearest(point : Vector2, maxDistance : float, layers : uint, group : string, info : out ChipmunkNearestPointQueryInfo
) : ChipmunkShape
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 of the layers you want to query against. |
group | The Chipmunk group identifier you want to filter out. |
info | An out parameter to a ChipmunkNearestPointQueryInfo struct that will contain additional information about the nearest shape. |
ChipmunkShape
- The nearest shape within maxDistance
of point
.
Return only information about the nearest shape to the query point.
Shapes are filtered using the group and layers in the same way as collisions.