public static void dGeomSetOffsetPosition (DGeom geom, DVector3C xyz) { geom.setOffsetPosition(xyz); }
public static void dGeomSetOffsetPosition (DGeom geom, DVector3C xyz) { geom.setOffsetPosition(xyz); }
/** * Set the local offset position of a geom from its body. * * Sets the geom's positional offset in local coordinates. * After this call, the geom will be at a new position determined from the * body's position and the offset. * The geom must be attached to a body. * If the geom did not have an offset, it is automatically created. * * @param geom the geom to set. * @param x the new X coordinate. * @param y the new Y coordinate. * @param z the new Z coordinate. */ //ODE_API public static void dGeomSetOffsetPosition (DGeom geom, double x, double y, double z) { geom.setOffsetPosition(x, y, z); } public static void dGeomSetOffsetPosition (DGeom geom, DVector3C xyz) {
/** * Set the local offset position of a geom from its body. * * Sets the geom's positional offset in local coordinates. * After this call, the geom will be at a new position determined from the * body's position and the offset. * The geom must be attached to a body. * If the geom did not have an offset, it is automatically created. * * @param geom the geom to set. * @param x the new X coordinate. * @param y the new Y coordinate. * @param z the new Z coordinate. */ //ODE_API public static void dGeomSetOffsetPosition (DGeom geom, double x, double y, double z) { geom.setOffsetPosition(x, y, z); } public static void dGeomSetOffsetPosition (DGeom geom, DVector3C xyz) {
geom[RECT].setOffsetPosition ( (BODY1_LENGTH-RECT_SIDES[0]) /2.0, 0.0,
for (k=0; k<GPB; k++) { obj[i].geom[k].setBody(obj[i].body); obj[i].geom[k].setOffsetPosition(dpos[k].reAdd(negC)); obj[i].geom[k].setOffsetRotation(drot[k]);
for (k=0; k<GPB; k++) { obj[i].geom[k].setBody(obj[i].body); obj[i].geom[k].setOffsetPosition( dpos[k].reSub(c) ); obj[i].geom[k].setOffsetRotation( drot[k]);
for (k=0; k<GPB; k++) { obj[i].geom[k].setBody(obj[i].body); obj[i].geom[k].setOffsetPosition(dpos[k].reAdd(negC)); obj[i].geom[k].setOffsetRotation(drot[k]);
obj[i].geom[k].setOffsetPosition(dpos[k].reAdd(negC)); obj[i].geom[k].setOffsetRotation(drot[k]);
for (k=0; k<GPB; k++) { obj[i].geom[k].setBody(obj[i].body); obj[i].geom[k].setOffsetPosition(dpos[k].reAdd(negC)); obj[i].geom[k].setOffsetRotation(drot[k]);
obj[i].geom[k].setOffsetPosition(dpos[k].reAdd(c)); obj[i].geom[k].setOffsetRotation(drot[k]);
obj[i].geom[k].setOffsetPosition(dpos[k].reAdd(c)); obj[i].geom[k].setOffsetRotation(drot[k]);
obj[i].geom[k].setOffsetPosition(dpos[k].reAdd(c)); obj[i].geom[k].setOffsetRotation(drot[k]);