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:
@@ -290,7 +290,6 @@ void btRigidBody::integrateVelocities(btScalar step)
|
||||
m_angularVelocity *= (MAX_ANGVEL/step) /angvel;
|
||||
}
|
||||
|
||||
clearForces();
|
||||
}
|
||||
|
||||
btQuaternion btRigidBody::getOrientation() const
|
||||
|
||||
Reference in New Issue
Block a user