Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2007-05-07 21:10:44 +0400
committerErwin Coumans <blender@erwincoumans.com>2007-05-07 21:10:44 +0400
commitd814e2b9c6ca935e8259360b4d3a6c4ad6dd0733 (patch)
treed05d955f5f46f499559680166eeae859c24b6713 /extern/bullet2/src/BulletDynamics
parentf638895aad318a2d480acccc66328c94c8c638fd (diff)
two minor changes, hopefully before release:
- reset randseed, which should make simulations more predictable - re-activate substeps (for more accurate simulations)
Diffstat (limited to 'extern/bullet2/src/BulletDynamics')
-rw-r--r--extern/bullet2/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/extern/bullet2/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp b/extern/bullet2/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp
index 94eece73e7c..eaf172b9395 100644
--- a/extern/bullet2/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp
+++ b/extern/bullet2/src/BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.cpp
@@ -104,6 +104,7 @@ bool MyContactDestroyedCallback(void* userPersistentData)
btSequentialImpulseConstraintSolver3::btSequentialImpulseConstraintSolver3()
{
+ btSeed2 = 0;
setSolverMode(SOLVER_RANDMIZE_ORDER);
}
@@ -111,6 +112,8 @@ btSequentialImpulseConstraintSolver3::btSequentialImpulseConstraintSolver3()
btSequentialImpulseConstraintSolver::btSequentialImpulseConstraintSolver()
:m_solverMode(SOLVER_USE_WARMSTARTING)
{
+ btSeed2 = 0;
+
gContactDestroyedCallback = &MyContactDestroyedCallback;
//initialize default friction/contact funcs