updated AllBulletDemo
This commit is contained in:
@@ -26,7 +26,6 @@ Written by: Marten Svanfeldt
|
||||
#include "GLDebugDrawer.h"
|
||||
#include "RagdollDemo.h"
|
||||
|
||||
GLDebugDrawer debugDrawer;
|
||||
|
||||
// Enrico: Shouldn't these three variables be real constants and not defines?
|
||||
|
||||
@@ -303,16 +302,6 @@ public:
|
||||
|
||||
|
||||
|
||||
int main(int argc,char* argv[])
|
||||
{
|
||||
RagdollDemo demoApp;
|
||||
|
||||
demoApp.initPhysics();
|
||||
demoApp.setCameraDistance(btScalar(10.));
|
||||
|
||||
return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bullet.sf.net",&demoApp);
|
||||
}
|
||||
|
||||
|
||||
void RagdollDemo::initPhysics()
|
||||
{
|
||||
@@ -330,7 +319,6 @@ void RagdollDemo::initPhysics()
|
||||
|
||||
m_dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher,overlappingPairCache,solver,collisionConfiguration);
|
||||
|
||||
m_dynamicsWorld->setDebugDrawer(&debugDrawer);
|
||||
|
||||
// Setup a big ground box
|
||||
{
|
||||
|
||||
@@ -37,6 +37,15 @@ public:
|
||||
virtual void displayCallback();
|
||||
|
||||
virtual void keyboardCallback(unsigned char key, int x, int y);
|
||||
|
||||
static DemoApplication* Create()
|
||||
{
|
||||
RagdollDemo* demo = new RagdollDemo();
|
||||
demo->myinit();
|
||||
demo->initPhysics();
|
||||
return demo;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
13
Demos/RagdollDemo/main.cpp
Normal file
13
Demos/RagdollDemo/main.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
#include "RagdollDemo.h"
|
||||
#include "GlutStuff.h"
|
||||
|
||||
int main(int argc,char* argv[])
|
||||
{
|
||||
RagdollDemo demoApp;
|
||||
|
||||
demoApp.initPhysics();
|
||||
demoApp.setCameraDistance(btScalar(10.));
|
||||
|
||||
return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bullet.sf.net",&demoApp);
|
||||
}
|
||||
Reference in New Issue
Block a user