From: Oliver O. <fr...@us...> - 2007-06-22 13:51:53
|
Update of /cvsroot/simspark/simspark/spark/oxygen/physicsserver In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv32348 Modified Files: Tag: projectx body.cpp Log Message: update from rcssserver3D Index: body.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/spark/oxygen/physicsserver/body.cpp,v retrieving revision 1.2.2.1.2.1 retrieving revision 1.2.2.1.2.2 diff -C2 -d -r1.2.2.1.2.1 -r1.2.2.1.2.2 *** body.cpp 17 Jun 2007 08:16:06 -0000 1.2.2.1.2.1 --- body.cpp 22 Jun 2007 13:51:45 -0000 1.2.2.1.2.2 *************** *** 35,38 **** --- 35,43 ---- Body::~Body() { + if (mODEBody) + { + dBodyDestroy(mODEBody); + mODEBody = 0; + } } *************** *** 362,365 **** --- 367,379 ---- } + salt::Matrix + Body::GetRotation() const + { + const dReal* m = dBodyGetRotation(mODEBody); + salt::Matrix rot; + ConvertRotationMatrix(m,rot); + return rot; + } + Vector3f Body::GetAngularVelocity() const |