[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56302] trunk/blender/source/gameengine/ Physics/Bullet/CcdPhysicsController.cpp: game engine: Use bullet' s default contact processing theshold

Sergej Reich sergej.reich at googlemail.com
Thu Apr 25 21:50:54 CEST 2013


Revision: 56302
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56302
Author:   sergof
Date:     2013-04-25 19:50:54 +0000 (Thu, 25 Apr 2013)
Log Message:
-----------
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

Modified Paths:
--------------
    trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp

Modified: trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
===================================================================
--- trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp	2013-04-25 19:50:51 UTC (rev 56301)
+++ trunk/blender/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp	2013-04-25 19:50:54 UTC (rev 56302)
@@ -536,7 +536,9 @@
 		{
 			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);
 
 	}




More information about the Bf-blender-cvs mailing list