[Opal-commits] opal/src/ODE ODESolid.cpp,1.92,1.93 ODESolid.h,1.72,1.73
Status: Inactive
Brought to you by:
tylerstreeter
|
From: Olex <ole...@us...> - 2005-12-01 02:05:03
|
Update of /cvsroot/opal/opal/src/ODE In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9152/src/ODE Modified Files: ODESolid.cpp ODESolid.h Log Message: Implemented Solid::setMass, added unit tests to test it. Added missing Point3r implementation file. Index: ODESolid.h =================================================================== RCS file: /cvsroot/opal/opal/src/ODE/ODESolid.h,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** ODESolid.h 6 Nov 2005 03:20:01 -0000 1.72 --- ODESolid.h 1 Dec 2005 02:04:54 -0000 1.73 *************** *** 107,110 **** --- 107,112 ---- virtual Vec3r OPAL_CALL getGlobalAngularVel()const; + virtual void OPAL_CALL setMass( const Mass & newmass, const Matrix44r & offset ); + virtual void OPAL_CALL translateMass(const Vec3r& offset); Index: ODESolid.cpp =================================================================== RCS file: /cvsroot/opal/opal/src/ODE/ODESolid.cpp,v retrieving revision 1.92 retrieving revision 1.93 diff -C2 -d -r1.92 -r1.93 *** ODESolid.cpp 19 Nov 2005 18:09:01 -0000 1.92 --- ODESolid.cpp 1 Dec 2005 02:04:54 -0000 1.93 *************** *** 1,30 **** /************************************************************************* ! * * ! * Open Physics Abstraction Layer * ! * Copyright (C) 2004-2005 * ! * Alan Fischer ala...@gm... * ! * Andres Reinot an...@re... * ! * Tyler Streeter tyl...@gm... * ! * All rights reserved. * ! * Web: opal.sourceforge.net * ! * * [...2272 lines suppressed...] ! } ! ! void ODESolid::internal_setFreelySpinning( bool fs ) ! { ! mIsFreelySpinning = fs; ! } ! ! bool ODESolid::isInertiaNonSymmetric( const dMass& mass ) const ! { ! if ( !areEqual( ( real ) mass.I[ 0 ], ( real ) mass.I[ 5 ] ) ! || !areEqual( ( real ) mass.I[ 5 ], ( real ) mass.I[ 10 ] ) ) ! { ! return true; ! } ! else ! { ! return false; ! } ! } } |