Revision: 8656
http://playerstage.svn.sourceforge.net/playerstage/?rev=8656&view=rev
Author: hsujohnhsu
Date: 2010-05-03 21:12:37 +0000 (Mon, 03 May 2010)
Log Message:
-----------
this get's overwritten by Body::Update()'s call to
this->SetTorque(this->angularAccel); and should not be so.
changing dBodySetTorque to dBodyAddTorque for correct behavior.
Modified Paths:
--------------
code/gazebo/trunk/server/physics/ode/ODEBody.cc
Modified: code/gazebo/trunk/server/physics/ode/ODEBody.cc
===================================================================
--- code/gazebo/trunk/server/physics/ode/ODEBody.cc 2010-05-03 18:21:04 UTC
(rev 8655)
+++ code/gazebo/trunk/server/physics/ode/ODEBody.cc 2010-05-03 21:12:37 UTC
(rev 8656)
@@ -496,7 +496,7 @@
if (this->bodyId)
{
this->physicsEngine->LockMutex();
- dBodySetTorque(this->bodyId, torque.x, torque.y, torque.z);
+ dBodyAddTorque(this->bodyId, torque.x, torque.y, torque.z);
this->physicsEngine->UnlockMutex();
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit