[ODE] Correction

Frank Compagner Frank Compagner <frank at compagner.com>
Fri May 30 04:17:02 2003


Oops,
just discovered that the "bug" in test_boxstack.cpp I reported last night was,
in fact, only in my code. Failed to check the cvs status, sorry about that.

However, I would like to requests the following changes to the test code, to
accomodate vc6's lack of for loop scoping:
In test_boxstack.cpp, change line 340 from:
    for (int i=0; i<3; i++) bbsides[i] = aabb[i*2+1] - aabb[i*2];
to:
    for (int j=0; j<3; j++) bbsides[j] = aabb[j*2+1] - aabb[j*2];

In test_collision.cpp, change lines 158 and 159 from:
    for (int i=0; i<n; i++) {
      dGeomID g = dSpaceGetGeom (space,i);
to:
    for (int j=0; j<n; j++) {
      dGeomID g = dSpaceGetGeom (space,j);

and change line 204 from:
    for (int j=0; j<3; j++) pos2[j] = pos[j] + 0.1*n[j];
to:
    for (int k=0; k<3; k++) pos2[k] = pos[k] + 0.1*n[k];

These are minor changes, and it won't interfere with anything, but it will
allow users of msvc6 to compilke the samples right out of the box.

Frank.
-------------------
frank@compagner.com