Chipmunk
.SegmentQueryFirst()static function SegmentQueryFirst(start : Vector2, end : Vector2, layers : uint, ground : string, info : out ChipmunkSegmentQueryInfo
) : ChipmunkShape
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. |
info | An out parameter to a ChipmunkSegmentQueryInfo struct that will contain additional information about the first shape hit. |
Return only the first shape struck by the segment query as it goes from start to end.
Shapes are filtered using the group and layers in the same way as collisions.