/** * Set the joint anchor point. * * The joint will try to keep this point on each body * together. The input is specified in world coordinates. * @param j j * @param x x * @param y y * @param z z */ //ODE_API public static void dJointSetBallAnchor (DBallJoint j, double x, double y, double z) { j.setAnchor(x, y, z); }
/** * Set the joint anchor point. * * The joint will try to keep this point on each body * together. The input is specified in world coordinates. * @param j j * @param x x * @param y y * @param z z */ //ODE_API public static void dJointSetBallAnchor (DBallJoint j, double x, double y, double z) { j.setAnchor(x, y, z); }
joint[i].setAnchor (k,k,k+0.4);
joint[i].setAnchor (k,k,k+0.4);
joint[i].attach(body[i],body[i+1]); k = (i+0.5)*SIDE; joint[i].setAnchor(k,k,k+0.4);
joint[i] = OdeHelper.createBallJoint (world,null); joint[i].attach (body[b1],body[b2]); joint[i].setAnchor (dRandReal()*2-1, dRandReal()*2-1,dRandReal()*2+RADIUS);
final DVector3C p = dBodyGetPosition (particle[i]); particle_joint[i].setAnchor(p);
particle_joint[i].attach (anchor_body,particle[i]); DVector3C p = particle[i].getPosition(); particle_joint[i].setAnchor(p);