lua.wetgenes.chipmunk.space.query_segment
array = space:query_segment(sx,sy,ex,ey,r,group,categories,mask)
Find the shapes that are along this raycast segment, from (sx,sy) to (ex,ey) with a radius of r. Use group,categories and mask to filter the results.
Returns an array of hit data, with each item containing the following.
it.shape -- the shape
it.point_x -- the point of contact (x)
it.point_y -- the point of contact (y)
it.normal_x -- the normal at contact (x)
it.normal_y -- the normal at contact (y)
it.alpha -- how far along the segment the contact happened (0 to 1)