/** * Create a new joint of the hinge2 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 DHinge2Joint dJointCreateHinge2 (DWorld w, DJointGroup g) { return OdeHelper.createHinge2Joint(w, g); }
/** * Create a new joint of the hinge2 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 DHinge2Joint dJointCreateHinge2 (DWorld w, DJointGroup g) { return OdeHelper.createHinge2Joint(w, g); }
joint[jointI+i] = OdeHelper.createHinge2Joint (world,null); DHinge2Joint j = joint[jointI+i]; j.attach (body[bodyI],body[bodyI+i+1]);
sphere[spheres++].setBody (body[bodies]); joint[joints] = OdeHelper.createHinge2Joint (world,null); if (x == -17) joint[joints].attach (b,body[bodies]); sphere[spheres++].setBody (body[bodies]); joint[joints] = OdeHelper.createHinge2Joint (world,null); if (x == -17) joint[joints].attach (b,body[bodies]);
joint[i] = OdeHelper.createHinge2Joint (world,null); joint[i].attach(body[0],body[i+1]); final DVector3C a = body[i+1].getPosition();
0.5*SIDE,0,1, -0.5*SIDE,0,1, 1,0,0, 1,0,0, 0,0); jointHinge2 = OdeHelper.createHinge2Joint (world,null); jointHinge2.attach (body[0],body[1]); jointHinge2.setAnchor (-0.5*SIDE,0,1); 0.5*SIDE,0,1, -0.5*SIDE,0,1, 1,0,0, 1,0,0, 0,0); jointHinge2 = OdeHelper.createHinge2Joint (world,null); jointHinge2.attach (body[0],body[1]); jointHinge2.setAnchor (-0.5*SIDE,0,1);