Chipmunk2D Unity Documentation | Main Page | Forum

Manual

Tutorials

API

Classes

Structs

Enumerations

Chipmunk.SegmentQuery()

static function SegmentQuery(start : Vector2, end : Vector2, layers : uint, ground : string, delegate : SegmentQueryDelegate) : void

Parameters


startStarting point of the segment query.
endEnding point of the segment query.
layersThe Chipmunk layer bitmask of the layers you want to query against.
groundThe Chipmunk group identifier you want to filter out.
delegateThe delegate function that will be called for each shape the segment query hits.

Description

Find all shapes overlapping the segment with the given start and end points.

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