/** * Set the maximum correcting velocity that contacts are allowed * to generate. * @param w w * @param vel The default value is infinity (i.e. no limit). * Reducing this value can help prevent "popping" of deeply embedded objects. */ //ODE_API public static void dWorldSetContactMaxCorrectingVel (DWorld w, double vel) { w.setContactMaxCorrectingVel(vel); }
/** * Set the maximum correcting velocity that contacts are allowed * to generate. * @param w w * @param vel The default value is infinity (i.e. no limit). * Reducing this value can help prevent "popping" of deeply embedded objects. */ //ODE_API public static void dWorldSetContactMaxCorrectingVel (DWorld w, double vel) { w.setContactMaxCorrectingVel(vel); }
private void demo (String[] args) { OdeHelper.initODE2(0); world = OdeHelper.createWorld(); space = OdeHelper.createSimpleSpace(); contactgroup = OdeHelper.createJointGroup(); world.setGravity (0,0,-9.81); world.setContactMaxCorrectingVel(2.5); world.setMaxAngularSpeed(1); world.setAngularDamping(0.6 * STEP_SIZE); world.setAngularDampingThreshold(0); world.setLinearDampingThreshold(0); world.setLinearDamping(0.6 * STEP_SIZE); for (int i = 0; i < obj.length; i++) obj[i] = new MyObject(); OdeHelper.createPlane( space, 0, 0, 1, 0 ); dsSimulationLoop (args,352,288,this); contactgroup.destroy (); space.destroy (); world.destroy (); OdeHelper.closeODE(); }
world.setMaxAngularSpeed(200); world.setContactMaxCorrectingVel (0.1); world.setContactSurfaceLayer (0.001); OdeHelper.createPlane (space,0,0,1,0);
world.setCFM (1e-5); world.setAutoDisableFlag (true); world.setContactMaxCorrectingVel (0.1); world.setContactSurfaceLayer (0.001); for (int i = 0; i < obj.length; i++) {
world.setCFM (1e-5); world.setAutoDisableFlag (true); world.setContactMaxCorrectingVel (0.1); world.setContactSurfaceLayer (0.001); for (int i = 0; i < obj.length; i++) {
world.setCFM (1e-5); world.setAutoDisableFlag (true); world.setContactMaxCorrectingVel (0.1); world.setContactSurfaceLayer (0.001); for (int i = 0; i < obj.length; i++) {