mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-06 10:28:40 +00:00
reduced dofs and interpolated transform needs to be updated from the time_n states in the iteration
This commit is contained in:
@@ -106,8 +106,8 @@ public:
|
||||
// // rsb->mapToReducedDofs();
|
||||
// }
|
||||
|
||||
// float internalTimeStep = 1. / 60.f;
|
||||
float internalTimeStep = 1e-3;
|
||||
float internalTimeStep = 1. / 60.f;
|
||||
// float internalTimeStep = 1e-3;
|
||||
m_dynamicsWorld->stepSimulation(deltaTime, 1, internalTimeStep);
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ void BasicTest::initPhysics()
|
||||
// rsb->scale(btVector3(1, 1, 1));
|
||||
rsb->translate(btVector3(0, 4, 0)); //TODO: add back translate and scale
|
||||
// rsb->setTotalMass(0.5);
|
||||
rsb->setStiffnessScale(100);
|
||||
rsb->setStiffnessScale(0.5);
|
||||
rsb->setFixedNodes();
|
||||
rsb->m_cfg.kKHR = 1; // collision hardness with kinematic objects
|
||||
rsb->m_cfg.kCHR = 1; // collision hardness with rigid body
|
||||
|
||||
Reference in New Issue
Block a user