diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-04-01 07:30:15 +0400 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-04-01 07:30:15 +0400 |
commit | 36fd42ac85c40861b960b1f896dff972afc75691 (patch) | |
tree | f7c3e52ffa17a022829a4e22d6c67e25f4587f7b /source/gameengine/Physics/Bullet | |
parent | 63bc0b3847366bc21adc7bfcf5f03e223cf4d8f8 (diff) |
more Bullet physics improvements, mainly stability and performance related.
AddObjectActuator has new python method to immediately create objects (this allows to create multiple objects in 1 frame in different positions)
Diffstat (limited to 'source/gameengine/Physics/Bullet')
-rw-r--r-- | source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp index 98387076892..2c4f98c5624 100644 --- a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp +++ b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp @@ -315,7 +315,7 @@ m_solverType(-1) //broadphase = new SimpleBroadphase(); } - setSolverType(0); + setSolverType(1); m_collisionWorld = new CollisionWorld(dispatcher,broadphase); @@ -524,6 +524,7 @@ bool CcdPhysicsEnvironment::proceedDeltaTimeOneStep(float timeStep) DispatcherInfo dispatchInfo; dispatchInfo.m_timeStep = timeStep; dispatchInfo.m_stepCount = 0; + dispatchInfo.m_debugDraw = m_debugDrawer; scene->DispatchAllCollisionPairs(*GetDispatcher(),dispatchInfo);///numsubstep,g); @@ -882,7 +883,7 @@ void CcdPhysicsEnvironment::setSolverType(int solverType) { m_solver = new SimpleConstraintSolver(); - + //printf("Iterative Impulse ConstraintSolver\n"); break; } } @@ -892,6 +893,7 @@ void CcdPhysicsEnvironment::setSolverType(int solverType) if (m_solverType != solverType) { m_solver = new OdeConstraintSolver(); + //printf("Quickstep ConstraintSolver\n"); break; } |