ported point_query example from pymunk