/** * Create a new joint of the universal 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 DUniversalJoint dJointCreateUniversal (DWorld w, DJointGroup g) { return OdeHelper.createUniversalJoint(w, g); }
/** * Create a new joint of the universal 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 DUniversalJoint dJointCreateUniversal (DWorld w, DJointGroup g) { return OdeHelper.createUniversalJoint(w, g); }
private DJoint addUniversalJoint(DxRagdollBody body1, DxRagdollBody body2, DVector3 anchor, DVector3 axis1, DVector3 axis2, double loStop1, double hiStop1, double loStop2, double hiStop2) { DUniversalJoint joint = OdeHelper.createUniversalJoint(world); joint.attach(body1.body, body2.body); joint.setAnchor(anchor); joint.setAxis1(axis1); joint.setAxis2(axis2); joint.setParam(PARAM_N.dParamLoStop1, loStop1); joint.setParam(PARAM_N.dParamHiStop1, hiStop1); joint.setParam(PARAM_N.dParamLoStop2, loStop2); joint.setParam(PARAM_N.dParamHiStop2, hiStop2); joints.add(joint); return joint; }
private DJoint addUniversalJoint(DxRagdollBody body1, DxRagdollBody body2, DVector3 anchor, DVector3 axis1, DVector3 axis2, double loStop1, double hiStop1, double loStop2, double hiStop2) { DUniversalJoint joint = OdeHelper.createUniversalJoint(world); joint.attach(body1.body, body2.body); joint.setAnchor(anchor); joint.setAxis1(axis1); joint.setAxis2(axis2); joint.setParam(PARAM_N.dParamLoStop1, loStop1); joint.setParam(PARAM_N.dParamHiStop1, hiStop1); joint.setParam(PARAM_N.dParamLoStop2, loStop2); joint.setParam(PARAM_N.dParamHiStop2, hiStop2); joints.add(joint); return joint; }
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); jointUniversal = OdeHelper.createUniversalJoint (world,null); jointUniversal.attach (body[0],body[1]); jointUniversal.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); jointUniversal = OdeHelper.createUniversalJoint (world,null); jointUniversal.attach (body[0],body[1]); jointUniversal.setAnchor (0,0,1);