updated demo, can't stepFront

This commit is contained in:
ejcoumans 2006-11-12 07:30:09 +00:00
parent 06a1de2574
commit 5f91cc237d
2 changed files with 6 additions and 5 deletions

View File

@ -1473,10 +1473,11 @@ int main(int argc,char** argv)
ConcaveDemo* concaveDemo = new ConcaveDemo(); ConcaveDemo* concaveDemo = new ConcaveDemo();
concaveDemo->initPhysics(); concaveDemo->initPhysics();
concaveDemo->setCameraDistance(30.f); concaveDemo->setCameraDistance(30.f);
concaveDemo->stepFront(); //cannot run stepFront yet, the OpenGL context is not opened (stepFront updates camera...)
concaveDemo->stepFront(); // concaveDemo->stepFront();
concaveDemo->stepFront(); // concaveDemo->stepFront();
concaveDemo->stepFront(); // concaveDemo->stepFront();
// concaveDemo->stepFront();
return glutmain(argc, argv,640,480,"Moving Concave Mesh Demo",concaveDemo); return glutmain(argc, argv,640,480,"Moving Concave Mesh Demo",concaveDemo);
} }

View File

@ -44,7 +44,7 @@ m_dynamicsWorld(0),
m_pickConstraint(0), m_pickConstraint(0),
m_cameraDistance(15.0), m_cameraDistance(15.0),
m_debugMode(0), m_debugMode(0),
m_ele(0.f), m_ele(20.f),
m_azi(0.f), m_azi(0.f),
m_cameraPosition(0.f,0.f,0.f), m_cameraPosition(0.f,0.f,0.f),
m_cameraTargetPosition(0.f,0.f,0.f), m_cameraTargetPosition(0.f,0.f,0.f),