fix Mac OSX build
This commit is contained in:
@@ -1257,7 +1257,7 @@ btRigidBody* DemoApplication::localCreateRigidBody(float mass, const btTransform
|
||||
|
||||
btRigidBody* body = new btRigidBody(mass,0,shape,localInertia);
|
||||
body->setWorldTransform(startTransform);
|
||||
|
||||
body->setContactProcessingThreshold(m_defaultContactProcessingThreshold);
|
||||
m_dynamicsWorld->addRigidBody(body);
|
||||
|
||||
return body;
|
||||
|
||||
@@ -40,7 +40,13 @@ class DemoApplication
|
||||
protected:
|
||||
|
||||
btDynamicsWorld* m_dynamicsWorld;
|
||||
btScalar m_defaultContactProcessingThreshold;
|
||||
|
||||
public:
|
||||
DemoApplication()
|
||||
:m_defaultContactProcessingThreshold(BT_LARGE_FLOAT)
|
||||
{
|
||||
}
|
||||
virtual void myinit() {}
|
||||
virtual btDynamicsWorld* getDynamicsWorld()
|
||||
{
|
||||
|
||||
@@ -51,7 +51,9 @@ int main(int argc,char** argv)
|
||||
benchmarkDemo.initPhysics();
|
||||
benchmarkDemo.getDynamicsWorld()->setDebugDrawer(&gDebugDrawer);
|
||||
benchmarkDemo.setDebugMode(benchmarkDemo.getDebugMode() | btIDebugDraw::DBG_NoDeactivation);
|
||||
setDefaultContactProcessingThreshold(0.f);
|
||||
return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.com",&benchmarkDemo);
|
||||
|
||||
#else //USE_GRAPHICAL_BENCHMARK
|
||||
int d;
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user