dSpaceCollide

@brief Determines which pairs of geoms in a space may potentially intersect, and calls the callback function for each candidate pair.

@param space The space to test.

@param data Passed from dSpaceCollide directly to the callback function. Its meaning is user defined. The o1 and o2 arguments are the geoms that may be near each other.

@param callback A callback function is of type @ref dNearCallback.

@remarks Other spaces that are contained within the colliding space are not treated specially, i.e. they are not recursed into. The callback function may be passed these contained spaces as one or both geom arguments.

@remarks dSpaceCollide() is guaranteed to pass all intersecting geom pairs to the callback function, but may also pass close but non-intersecting pairs. The number of these calls depends on the internal algorithms used by the space. Thus you should not expect that dCollide will return contacts for every pair passed to the callback.

@sa dSpaceCollide2 @ingroup collide

extern (C) nothrow
void
dSpaceCollide

Meta