add InProcessExampleBrowser to make it easy to instantiate the ExampleBrowser in its own thread

example usage:

int main(int argc, char* argv[])
{

btInProcessExampleBrowserInternalData* data = btCreateInProcessExampleBrowser(argc,argv);

while (!(btIsExampleBrowserTerminated(data)))
{
}

btShutDownExampleBrowser(data);

        return 0;
}
This commit is contained in:
Erwin Coumans
2016-03-02 18:01:33 -08:00
parent d70132a901
commit b130be46f7
4 changed files with 215 additions and 0 deletions

View File

@@ -365,6 +365,7 @@ void ForkLiftDemo::initPhysics()
{
m_dynamicsWorld ->getSolverInfo().m_minimumSolverBatchSize = 128;//for direct solver, it is better to solve multiple objects together, small batches have high overhead
}
m_dynamicsWorld->getSolverInfo().m_globalCfm = 0.00001;
m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld);