reduced number of sphere in Basic demo, some system have slow rendering of spheres.
removed another warning.
This commit is contained in:
@@ -24,10 +24,10 @@ subject to the following restrictions:
|
|||||||
#define START_POS_Z -3
|
#define START_POS_Z -3
|
||||||
|
|
||||||
|
|
||||||
///create 1000 (10x10x10) dynamic objects
|
///create 125 (5x5x5) dynamic object
|
||||||
#define ARRAY_SIZE_X 10
|
#define ARRAY_SIZE_X 5
|
||||||
#define ARRAY_SIZE_Y 10
|
#define ARRAY_SIZE_Y 5
|
||||||
#define ARRAY_SIZE_Z 10
|
#define ARRAY_SIZE_Z 5
|
||||||
|
|
||||||
|
|
||||||
//#define USE_SIMPLE_DYNAMICS_WORLD 1
|
//#define USE_SIMPLE_DYNAMICS_WORLD 1
|
||||||
|
|||||||
@@ -160,7 +160,8 @@ void CcdPhysicsDemo::createStack( btCollisionShape* boxShape, float halfCubeSize
|
|||||||
trans.setOrigin(pos);
|
trans.setOrigin(pos);
|
||||||
btScalar mass = 1.f;
|
btScalar mass = 1.f;
|
||||||
|
|
||||||
btRigidBody* body = localCreateRigidBody(mass,trans,boxShape);
|
btRigidBody* body = 0;
|
||||||
|
body = localCreateRigidBody(mass,trans,boxShape);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -282,7 +283,8 @@ void CcdPhysicsDemo::clientMoveAndDisplay()
|
|||||||
if (m_idle)
|
if (m_idle)
|
||||||
dt = 1.0/420.f;
|
dt = 1.0/420.f;
|
||||||
|
|
||||||
int numSimSteps = m_dynamicsWorld->stepSimulation(dt,maxSimSubSteps);
|
int numSimSteps = 0;
|
||||||
|
numSimSteps = m_dynamicsWorld->stepSimulation(dt,maxSimSubSteps);
|
||||||
/*
|
/*
|
||||||
if (!numSimSteps)
|
if (!numSimSteps)
|
||||||
printf("Interpolated transforms\n");
|
printf("Interpolated transforms\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user