/** * Create a new joint of the hinge type. * * @param w w * @param g set to <tt>null</tt> to allocate the joint normally. * If it is nonzero the joint is allocated in the given joint group. * @return joint */ //ODE_API public static DHingeJoint dJointCreateHinge (DWorld w, DJointGroup g) { return OdeHelper.createHingeJoint(w, g); }
/** * Create a new joint of the hinge type. * * @param w w * @param g set to <tt>null</tt> to allocate the joint normally. * If it is nonzero the joint is allocated in the given joint group. * @return joint */ //ODE_API public static DHingeJoint dJointCreateHinge (DWorld w, DJointGroup g) { return OdeHelper.createHingeJoint(w, g); }
private DJoint addHingeJoint(DxRagdollBody body1, DxRagdollBody body2, DVector3 anchor, DVector3 axis, double loStop, double hiStop) { DHingeJoint joint = OdeHelper.createHingeJoint(world); joint.attach(body1.body, body2.body); joint.setAnchor(anchor); joint.setAxis(axis); joint.setParam(PARAM_N.dParamLoStop1, loStop); joint.setParam(PARAM_N.dParamHiStop1, hiStop); joints.add(joint); return joint; }
private DJoint addHingeJoint(DxRagdollBody body1, DxRagdollBody body2, DVector3 anchor, DVector3 axis, double loStop, double hiStop) { DHingeJoint joint = OdeHelper.createHingeJoint(world); joint.attach(body1.body, body2.body); joint.setAnchor(anchor); joint.setAxis(axis); joint.setParam(PARAM_N.dParamLoStop1, loStop); joint.setParam(PARAM_N.dParamHiStop1, hiStop); joints.add(joint); return joint; }
body2.setMass(mass); hinge1 = OdeHelper.createHingeJoint(world); hinge1.attach(body1, null); hinge2 = OdeHelper.createHingeJoint(world); hinge2.attach(body2, null);
matraca.setMass(mass); hinge = OdeHelper.createHingeJoint(world); hinge.attach(kbody, matraca); hinge.setAnchor(kx, ky, kz+1);
matraca.setMass(mass); hinge = OdeHelper.createHingeJoint(world); hinge.attach(kbody, matraca); hinge.setAnchor(kx, ky, kz+1);
body[1].setQuaternion (q); hinge = OdeHelper.createHingeJoint (world,null); hinge.attach (body[0],body[1]); hinge.setAnchor (0,0,1);
0.5*SIDE,0.5*SIDE,1, -0.5*SIDE,-0.5*SIDE,1, 1,1,0, 1,1,0, 0.25*M_PI,0.25*M_PI); jointHinge = OdeHelper.createHingeJoint (world,null); jointHinge.attach (body[0],body[1]); jointHinge.setAnchor (0,0,1); 0.5*SIDE,0.5*SIDE,1, -0.5*SIDE,-0.5*SIDE,1, 1,0,0, 1,0,0, 0,0); jointHinge = OdeHelper.createHingeJoint (world,null); jointHinge.attach (body[0],body[1]); jointHinge.setAnchor (0,0,1); 0.5*SIDE,0.5*SIDE,1, -0.5*SIDE,-0.5*SIDE,1, 1,0,0, 1,0,0, 0,0); jointHinge = OdeHelper.createHingeJoint (world,null); jointHinge.attach (body[0],body[1]); jointHinge.setAnchor (0,0,1); 0.5*SIDE,0,1+0.5*SIDE, -0.5*SIDE,0,1-0.5*SIDE, 1,0,0, 1,0,0, 0,0); jointHinge = OdeHelper.createHingeJoint (world,null); jointHinge.attach (body[0],body[1]); jointHinge.setAnchor (0,0,1);
hinges[i] = OdeHelper.createHingeJoint (world,null); hinges[i].attach (segbodies[i],segbodies[i+1]); hinges[i].setAnchor (i + 0.5 - SEGMCNT/2.0, 0, 5);