lua.wetgenes.chipmunk.space.query_point
array = space:query_point(x,y,d,group,categories,mask)
Find the shapes that are within d distance from the point at x,y. 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.distance -- the distance to the point of contact
it.gradient_x -- the normalised vector to collision (x)
it.gradient_y -- the normalised vector to collision (y)