/** * Create a joint group. * * @param max_size deprecated. Set to 0. * @return joint group */ //ODE_API public static DJointGroup dJointGroupCreate (int max_size) { return OdeHelper.createJointGroup(); }
/** * Create a joint group. * * @param max_size deprecated. Set to 0. * @return joint group */ //ODE_API public static DJointGroup dJointGroupCreate (int max_size) { return OdeHelper.createJointGroup(); }
private void demo(String[] args) { // create world OdeHelper.initODE2( 0 ); world = OdeHelper.createWorld(); space = OdeHelper.createSimpleSpace( null ); contactgroup = OdeHelper.createJointGroup(); world.setGravity( 0,0,-0.5 ); world.setCFM( 1e-5 ); OdeHelper.createPlane( space,0,0,1,0 ); for (int i = 0; i < NUM; i++) obj[i] = new MyObject(); // run simulation dsSimulationLoop( args,352,288,this ); contactgroup.destroy(); space.destroy(); world.destroy(); OdeHelper.closeODE(); }
contactgroup = OdeHelper.createJointGroup(); world.setGravity (0,0,-GRAVITY); OdeHelper.createPlane (space,0,0,1,0);
private void demo(String[] args) { OdeHelper.initODE2(0); world = OdeHelper.createWorld(); world.setGravity(0, 0, -0.5); world.setQuickStepNumIterations(50); // <-- increase for more stability space = OdeHelper.createSimpleSpace(null); //space = OdeHelper.createSapSpace(AXES.XYZ); //space = OdeHelper.createBHVSpace(0); contactgroup = OdeHelper.createJointGroup(); DGeom ground = OdeHelper.createPlane(space, 0, 0, 1, 0); place_cards(); // run simulation dsSimulationLoop (args, 640, 480, this); levels = 0; place_cards(); contactgroup.destroy(); world.destroy(); ground.destroy(); space.destroy(); OdeHelper.closeODE(); }
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(); }
contactgroup = OdeHelper.createJointGroup (); OdeHelper.createPlane( space, 0, 0, 1, 0 );
contactgroup = OdeHelper.createJointGroup (); OdeHelper.createPlane( space, 0, 0, 1, 0 );
private void demo(String[] args) { int i,j; DMass m = OdeHelper.createMass(); // create world OdeHelper.initODE2(0); world = OdeHelper.createWorld(); space = OdeHelper.createHashSpace (null); contactgroup = OdeHelper.createJointGroup (); world.setGravity (0,0,-GRAVITY); ground = OdeHelper.createPlane (space,0,0,1,0); // bodies for (i=0; i<N1; i++) { for (j=0; j<N2; j++) { body[i][j] = OdeHelper.createBody (world); m.setBox (1,LENGTH,LENGTH,HEIGHT); m.adjust (MASS*(j+1)); body[i][j].setMass (m); body[i][j].setPosition (i*2*LENGTH,j*2*LENGTH,HEIGHT*0.5); box[i][j] = OdeHelper.createBox (space,LENGTH,LENGTH,HEIGHT); box[i][j].setBody (body[i][j]); } } // run simulation dsSimulationLoop (args,352,288,this); contactgroup.destroy(); space.destroy(); world.destroy(); OdeHelper.closeODE(); }
joints = OdeHelper.createJointGroup(); ground = OdeHelper.createPlane(space, 0, 0, 1, 0);
joints = OdeHelper.createJointGroup(); ground = OdeHelper.createPlane(space, 0, 0, 1, 0);
contactgroup = OdeHelper.createJointGroup(); world = OdeHelper.createWorld(); world.setGravity (0,0,-0.5);
contactgroup = OdeHelper.createJointGroup(); world = OdeHelper.createWorld(); world.setGravity (0,0,-0.5);
contactgroup = OdeHelper.createJointGroup(); world.setGravity (0,0,-0.5); world.setCFM (1e-5);
world = OdeHelper.createWorld(); space = OdeHelper.createHashSpace(null); contactgroup = OdeHelper.createJointGroup(); world.setGravity(0,0,-GRAVITY); world.setCFM (1e-5);
world = OdeHelper.createWorld(); space = OdeHelper.createHashSpace(null); contactgroup = OdeHelper.createJointGroup (); world.setGravity (0, 0, -0.5); OdeHelper.createPlane (space,0,0,1,0);
space = OdeHelper.createHashSpace(null); contactgroup = OdeHelper.createJointGroup(); world.setGravity (0,0,-9.8); world.setQuickStepNumIterations (64);
world = OdeHelper.createWorld(); space = OdeHelper.createHashSpace (null); contactgroup = OdeHelper.createJointGroup (); world.setGravity (0,0,-9.8); world.setQuickStepNumIterations (32);
contactgroup = OdeHelper.createJointGroup();
contactgroup = OdeHelper.createJointGroup();