From 5f91cc237d19b0bc12e393d5531ba3ca2a036cf5 Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Sun, 12 Nov 2006 07:30:09 +0000 Subject: [PATCH] updated demo, can't stepFront --- Demos/MovingConcaveDemo/ConcavePhysicsDemo.cpp | 9 +++++---- Demos/OpenGL/DemoApplication.cpp | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Demos/MovingConcaveDemo/ConcavePhysicsDemo.cpp b/Demos/MovingConcaveDemo/ConcavePhysicsDemo.cpp index 2f8ceb08c..14b70500d 100644 --- a/Demos/MovingConcaveDemo/ConcavePhysicsDemo.cpp +++ b/Demos/MovingConcaveDemo/ConcavePhysicsDemo.cpp @@ -1473,10 +1473,11 @@ int main(int argc,char** argv) ConcaveDemo* concaveDemo = new ConcaveDemo(); concaveDemo->initPhysics(); concaveDemo->setCameraDistance(30.f); - concaveDemo->stepFront(); - concaveDemo->stepFront(); - concaveDemo->stepFront(); - concaveDemo->stepFront(); +//cannot run stepFront yet, the OpenGL context is not opened (stepFront updates camera...) +// concaveDemo->stepFront(); +// concaveDemo->stepFront(); +// concaveDemo->stepFront(); +// concaveDemo->stepFront(); return glutmain(argc, argv,640,480,"Moving Concave Mesh Demo",concaveDemo); } diff --git a/Demos/OpenGL/DemoApplication.cpp b/Demos/OpenGL/DemoApplication.cpp index 17cceb192..b74a1b4df 100644 --- a/Demos/OpenGL/DemoApplication.cpp +++ b/Demos/OpenGL/DemoApplication.cpp @@ -44,7 +44,7 @@ m_dynamicsWorld(0), m_pickConstraint(0), m_cameraDistance(15.0), m_debugMode(0), - m_ele(0.f), + m_ele(20.f), m_azi(0.f), m_cameraPosition(0.f,0.f,0.f), m_cameraTargetPosition(0.f,0.f,0.f),