def nonstatic_point_query(self, point, func, data=None): """Query the space for collisions between a point and the non static shapes in the space func(shape, data) shape is the colliding shape data is the data argument sent to the point_query function """ f = self._get_query_cf(func, data) cp.cpSpaceShapePointQuery(self._space, point, f, None)
def nonstatic_point_query(self, point, func, data=None): """Query the space for collisions between a point and the non static shapes in the space :Parameters: point : (x,y) or `Vec2d` Define where to check for collision in the space. func : ``func(shape, data)`` Called when a collision is found shape : `Shape` The colliding shape data : any Data argument sent to the point_query function """ f = self._get_query_cf(func, data) cp.cpSpaceShapePointQuery(self._space, point, f, None)