diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2013-04-25 23:50:54 +0400 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2013-04-25 23:50:54 +0400 |
commit | b0d6c93ab6c23dcdf9d052a20b4730b902359952 (patch) | |
tree | ea67d9898d7efe5cc738226b33c576adc4df2025 /source/gameengine/Physics | |
parent | 3d1b24af00a26c62fdb19e6e2cda5b09e0024964 (diff) |
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
Diffstat (limited to 'source/gameengine/Physics')
-rw-r--r-- | source/gameengine/Physics/Bullet/CcdPhysicsController.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp index 111cfdb2c44..b389347cdb0 100644 --- a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp +++ b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp @@ -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); } |