/** * Set the position vector of a placeable geom. * * If the geom is attached to a body, the body's position will also be changed. * Calling this function on a non-placeable geom results in a runtime error in * the debug build of ODE. * * @param geom the geom to set. * @param x the new X coordinate. * @param y the new Y coordinate. * @param z the new Z coordinate. * @see ApiCppBody#dBodySetPosition(DBody, double, double, double) */ //ODE_API public static void dGeomSetPosition (DGeom geom, double x, double y, double z) { geom.setPosition(new DVector3(x, y, z)); }
/** * Set the position vector of a placeable geom. * * If the geom is attached to a body, the body's position will also be changed. * Calling this function on a non-placeable geom results in a runtime error in * the debug build of ODE. * * @param geom the geom to set. * @param x the new X coordinate. * @param y the new Y coordinate. * @param z the new Z coordinate. * @see ApiCppBody#dBodySetPosition(DBody, double, double, double) */ //ODE_API public static void dGeomSetPosition (DGeom geom, double x, double y, double z) { geom.setPosition(new DVector3(x, y, z)); }
geom[OBS].setPosition (1.95, -0.2, 0.5);
TriMesh2.setData(TriData2); TriMesh1.setPosition(0, 0, 0.9); DMatrix3 Rotation1 = new DMatrix3(); dRFromAxisAndAngle(Rotation1, 1, 0, 0, M_PI / 2.); TriMesh1.setRotation(Rotation1); TriMesh2.setPosition(1, 0, 0.9); DMatrix3 Rotation2 = new DMatrix3(); dRFromAxisAndAngle(Rotation2, 1, 0, 0, M_PI / 2.);
platform.setPosition(platpos); updatecam(); world.quickStep (stepsize);
platform.setPosition(platpos); updatecam(); dWorldQuickStep (world, stepsize);
gheight.setPosition( pos );
gheight.setPosition( pos );
bounds[i].len1(), bounds[i].len2()); geom[i].setPosition (bounds[i].getCenter());
world_mesh.setPosition(0, 0, 0.5); dRFromAxisAndAngle (R, 0,1,0, 0.0); world_mesh.setRotation (R);
trk.setPosition(ro.get0(), ro.get1() + balls_sep, ro.get2()); trk.setRotation(r3); trk.setPosition(so.get0(), so.get1() + balls_sep, so.get2()); trk.setRotation(s3);
obj[i].geom[0].setPosition( mc ); m.translate( mc );
System.out.println("mass at " + c); c.scale(-1); obj[i].geom[0].setPosition( c ); m.translate( c );
DVector3 c = new DVector3(m.getC()); c.scale(-1); obj[i].geom[0].setPosition(c); m.translate(c); } else if (cmd == 'x') {
DVector3 c = new DVector3(m.getC()); c.scale(-1); obj[i].geom[0].setPosition(c); m.translate(c); } else if (cmd == 'x') {
DVector3 c = new DVector3(m.getC()); c.scale(-1); obj[i].geom[0].setPosition(c); m.translate(c); } else if (cmd == 'x') {
obj[i].geom[0].setPosition(c); m.translate(c);