Chipmunk
.SegmentQuery()static function SegmentQuery(start : Vector2, end : Vector2, layers : uint, ground : string, delegate : SegmentQueryDelegate) : void
start | Starting point of the segment query. |
end | Ending point of the segment query. |
layers | The Chipmunk layer bitmask of the layers you want to query against. |
ground | The Chipmunk group identifier you want to filter out. |
delegate | The delegate function that will be called for each shape the segment query hits. |
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.