From b0d6c93ab6c23dcdf9d052a20b4730b902359952 Mon Sep 17 00:00:00 2001 From: Sergej Reich Date: Thu, 25 Apr 2013 19:50:54 +0000 Subject: [PATCH] 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 --- source/gameengine/Physics/Bullet/CcdPhysicsController.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }