Moved the 'btRigidBody::clearForce' to the end of the stepSimulation, instead of in each substep.

Should help with this issue, reported here: http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1601
We can optionally leave out the 'clearForces'.
Thanks everyone for the discussion.
This commit is contained in:
ejcoumans
2007-12-12 02:53:51 +00:00
parent 210a913110
commit 947dc8d33d
6 changed files with 198 additions and 157 deletions

View File

@@ -290,7 +290,6 @@ void btRigidBody::integrateVelocities(btScalar step)
m_angularVelocity *= (MAX_ANGVEL/step) /angvel;
}
clearForces();
}
btQuaternion btRigidBody::getOrientation() const