/** * Sets sublevel value for a space. * * Sublevel affects how the space is handled in dSpaceCollide2 when it is collided * with another space. If sublevels of both spaces match, the function iterates * geometries of both spaces and collides them with each other. If sublevel of one * space is greater than the sublevel of another one, only the geometries of the * space with greater sublevel are iterated, another space is passed into * collision callback as a geometry itself. By default all the spaces are assigned * zero sublevel. * * <p>NOTE: * The space sublevel <b> IS NOT </b> automatically updated when one space is inserted * into another or removed from one. It is a client's responsibility to update sublevel * value if necessary. * * @param space the space to modify * @param sublevel the sublevel value to be assigned * @see #dSpaceGetSublevel(DSpace) * @see ApiCppCollision#dSpaceCollide2(DGeom, DGeom, Object, org.ode4j.ode.DGeom.DNearCallback) */ //ODE_API public static void dSpaceSetSublevel (DSpace space, int sublevel) { space.setSublevel(sublevel); }
/** * Sets sublevel value for a space. * * Sublevel affects how the space is handled in dSpaceCollide2 when it is collided * with another space. If sublevels of both spaces match, the function iterates * geometries of both spaces and collides them with each other. If sublevel of one * space is greater than the sublevel of another one, only the geometries of the * space with greater sublevel are iterated, another space is passed into * collision callback as a geometry itself. By default all the spaces are assigned * zero sublevel. * * <p>NOTE: * The space sublevel <b> IS NOT </b> automatically updated when one space is inserted * into another or removed from one. It is a client's responsibility to update sublevel * value if necessary. * * @param space the space to modify * @param sublevel the sublevel value to be assigned * @see #dSpaceGetSublevel(DSpace) * @see ApiCppCollision#dSpaceCollide2(DGeom, DGeom, Object, org.ode4j.ode.DGeom.DNearCallback) */ //ODE_API public static void dSpaceSetSublevel (DSpace space, int sublevel) { space.setSublevel(sublevel); }