forked from bartvdbraak/blender
game engine: Use bullet's default contact processing theshold
Blender's old default of 1 was too small here. Now we don't override the default. If it's really needed to use a smaller value here, the property should be first exposed in the ui, but don't think this is necessary. Fixes [#35076] Dynamic objects have periodic glitch in velocity when on an incline
This commit is contained in:
parent
3d1b24af00
commit
b0d6c93ab6
@ -536,7 +536,9 @@ void CcdPhysicsController::CreateRigidbody()
|
||||
{
|
||||
body->setAngularFactor(0.f);
|
||||
}
|
||||
body->setContactProcessingThreshold(m_cci.m_contactProcessingThreshold);
|
||||
// use bullet's default contact processing theshold, blender's old default of 1 is too small here.
|
||||
// if there's really a need to change this, it should be exposed in the ui first.
|
||||
// body->setContactProcessingThreshold(m_cci.m_contactProcessingThreshold);
|
||||
body->setSleepingThresholds(gLinearSleepingTreshold, gAngularSleepingTreshold);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user