org.ode4j.ode
Interface DGeom.DNearCallback
- Enclosing interface:
- DGeom
public static interface DGeom.DNearCallback
User callback for geom-geom collision testing.
- Remark:
- The callback function can call dCollide on o1 and o2 to generate
contact points between each pair. Then these contact points may be added
to the simulation as contact joints. The user's callback function can of
course chose not to call dCollide for any pair, e.g. if the user decides
that those pairs should not interact.
call
void call(java.lang.Object data,
DGeom o1,
DGeom o2)
- Parameters:
data
- The user data object, as passed to dSpaceCollide.o1
- The first geom being tested.o2
- The second geom being test.