More stable parameters for solver (GpuDemo2d)

Added a possibility to switch between GPU/Bullet narrowphase ('j' key)
This commit is contained in:
rponom
2009-05-12 01:54:41 +00:00
parent 34685cb631
commit fcf7bda3b0
4 changed files with 34 additions and 8 deletions

View File

@@ -431,8 +431,8 @@ void btGpuDemoDynamicsWorld::debugDrawConstraints(int selectedBatch, const float
for(int i = 0; i < numConstraints; i++)
{
int indx = pBatchIds[i];
int idA = m_hIds[indx].x-1;
int idB = m_hIds[indx].y-1;
int idA = m_hIds[indx].x - 1;
int idB = m_hIds[indx].y - 1;
if((idA > 0) && (idB > 0))
{
btCollisionObject* colObjA = m_collisionObjects[idA];