private DJoint addFixedJoint(DxRagdollBody body1, DxRagdollBody body2) { DFixedJoint joint = OdeHelper.createFixedJoint(world); joint.attach(body1.body, body2.body); joint.setFixed(); joints.add(joint); return joint; }
private DJoint addFixedJoint(DxRagdollBody body1, DxRagdollBody body2) { DFixedJoint joint = OdeHelper.createFixedJoint(world); joint.attach(body1.body, body2.body); joint.setFixed(); joints.add(joint); return joint; }
fixedJ.attach ( null, body[BODY2]); fixedJ.setFixed (); world.setGravity (0,0,-0.8);
0.25*M_PI,0.25*M_PI); jointFixed = OdeHelper.createFixedJoint (world,null); jointFixed.attach (body[0],body[1]); jointFixed.setFixed (); return 1; 0,0); jointFixed = OdeHelper.createFixedJoint (world,null); jointFixed.attach (body[0],null); jointFixed.setFixed (); return 1; 0.25*M_PI,-0.25*M_PI); jointFixed = OdeHelper.createFixedJoint (world,null); jointFixed.attach (body[0],body[1]); jointFixed.setFixed (); return 1; 0.25*M_PI,0); jointFixed = OdeHelper.createFixedJoint (world,null); jointFixed.attach (body[0],null); jointFixed.setFixed (); return 1; j.attach (body[1],null); j.setFixed (); return 1; j.attach (body[1],null);
b.setMass (m); DFixedJoint j = OdeHelper.createFixedJoint(world, null); j.attach(body[bodyI], b); j.setFixed();
fixed.attach (null, bodyW); fixed.setFixed ();
j.attach (b, lastb); j.setFixed();