[Opal-commits] opal/src/ODE ODESolid.cpp,1.78,1.79
Status: Inactive
Brought to you by:
tylerstreeter
|
From: tylerstreeter <tyl...@us...> - 2005-03-31 08:47:30
|
Update of /cvsroot/opal/opal/src/ODE In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17811/src/ODE Modified Files: ODESolid.cpp Log Message: added some helper functions to Simulator; added data for ogre sample apps Index: ODESolid.cpp =================================================================== RCS file: /cvsroot/opal/opal/src/ODE/ODESolid.cpp,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** ODESolid.cpp 23 Mar 2005 07:54:34 -0000 1.78 --- ODESolid.cpp 31 Mar 2005 08:47:02 -0000 1.79 *************** *** 117,121 **** // Add the new Shapes. ! for (int i=0; i<data.getNumShapes(); ++i) { addShape(*(data.getShapeData(i))); --- 117,121 ---- // Add the new Shapes. ! for (unsigned int i=0; i<data.getNumShapes(); ++i) { addShape(*(data.getShapeData(i))); *************** *** 537,544 **** // The "direction" parameter orients the mass along one of the ! // body's local axes; x=1, y=2, z=3. TODO: This might be weird ! // if this capsule is not oriented along one of the body's axes. ! // Maybe have a default value in the Simulator that the user can ! // change. dMassSetCappedCylinder(&newMass, (dReal)data.material.density, 3, (dReal)capsuleData.radius, (dReal)capsuleData.length); --- 537,543 ---- // The "direction" parameter orients the mass along one of the ! // body's local axes; x=1, y=2, z=3. This axis MUST ! // correspond with the axis along which the capsule is ! // initially aligned, which is the capsule's local Z axis. dMassSetCappedCylinder(&newMass, (dReal)data.material.density, 3, (dReal)capsuleData.radius, (dReal)capsuleData.length); |