@SuppressWarnings("deprecation") public void destroy() { for (DJoint joint : joints) { joint.destroy(); } for (DxRagdollBody bone : bones) { bone.body.getFirstGeom().destroy(); bone.body.destroy(); } }
Box()// : // body(world), // geom(space, 0.2, 0.2, 0.2) { body = OdeHelper.createBody(world); geom = OdeHelper.createBox(space, 0.2, 0.2, 0.2); DMass mass = OdeHelper.createMass(); mass.setBox(10, 0.2, 0.2, 0.2); body.setMass(mass); geom.setData(this); geom.setBody(body); } void draw() //const
Box()// : // body(world), // geom(space, 0.2, 0.2, 0.2) { body = OdeHelper.createBody(world); geom = OdeHelper.createBox(space, 0.2, 0.2, 0.2); DMass mass = OdeHelper.createMass(); mass.setBox(10, 0.2, 0.2, 0.2); body.setMass(mass); geom.setData(this); geom.setBody(body); } void draw() //const
@SuppressWarnings("deprecation") public void destroy() { for (DJoint joint : joints) { joint.destroy(); } for (DxRagdollBody bone : bones) { bone.body.getFirstGeom().destroy(); bone.body.destroy(); } }