/** * Create a new joint of the Piston 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 DPistonJoint dJointCreatePiston (DWorld w, DJointGroup g) { return OdeHelper.createPistonJoint(w, g); }
/** * Create a new joint of the Piston 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 DPistonJoint dJointCreatePiston (DWorld w, DJointGroup g) { return OdeHelper.createPistonJoint(w, g); }
joint = sj; } else { // fall through default DPistonJoint pj = OdeHelper.createPistonJoint(world, null); pj.attach (body[BODY1], body[BODY2]); pj.setAxis (1, 0, 0);
joint = sj; } else { // fall through default DPistonJoint pj = OdeHelper.createPistonJoint(world, null); pj.attach (body[BODY1], body[BODY2]); pj.setAxis (1, 0, 0);