mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-05 23:31:06 +00:00
set default sleeping threshold for useMaximalCoordinate btRigidBody to be similar to btMultiBody (0.05)
This commit is contained in:
parent
78f5b141f9
commit
fd154cee8f
@ -33,6 +33,10 @@ class btRigidBody* MyMultiBodyCreator::allocateRigidBody(int urdfLinkIndex, btSc
|
|||||||
{
|
{
|
||||||
btRigidBody::btRigidBodyConstructionInfo rbci(mass, 0, colShape, localInertiaDiagonal);
|
btRigidBody::btRigidBodyConstructionInfo rbci(mass, 0, colShape, localInertiaDiagonal);
|
||||||
rbci.m_startWorldTransform = initialWorldTrans;
|
rbci.m_startWorldTransform = initialWorldTrans;
|
||||||
|
btScalar sleep_threshold = btScalar(0.22360679775);//sqrt(0.05) to be similar to btMultiBody (SLEEP_THRESHOLD)
|
||||||
|
rbci.m_angularSleepingThreshold = sleep_threshold;
|
||||||
|
rbci.m_linearSleepingThreshold = sleep_threshold;
|
||||||
|
|
||||||
btRigidBody* body = new btRigidBody(rbci);
|
btRigidBody* body = new btRigidBody(rbci);
|
||||||
if (m_rigidBody == 0)
|
if (m_rigidBody == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user