dynamicsWorld->stepSimulation(stepSize)
the program crashes with the following error:
The application is built on the DemoApplication class, from the bullet demos, like this:Bullet/Source/bullet-2.46/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.h:95: failed assertion `index < m_cachedPoints'
Code: Select all
class JJ_App : public DemoApplication
Code: Select all
void *spawnThread(void* arg)
{
JJ_App* appInstance = NULL;
char filename[50];
switch((int) arg)
{
case 1:
printf("Thread 1 says Hello\n");
myJJ_App1 = new JJ_App();
appInstance = myJJ_App1;
strcpy(filename,"testResult1.jjres");
break;
case 2:
printf("Thread 2 says Hello\n");
myJJ_App2 = new JJ_App();
appInstance = myJJ_App2;
strcpy(filename,"testResult2.jjres");
break;
default:
printf("ARRRRGH :)\n");
break;
}
appInstance->initPhysics();
appInstance->initTest( (int) arg,0.5f,0.5f,PI/4.0f,0.021227f,filename);
appInstance->threadLoop(); //including stepSimulation() and test analysis
return NULL;
}
Btw. the stacksize of the threads has been set to be large enough to room the instances.
Thx - Jonas