run the PhysicsServerExample 'stepSimulation' smoother
fix a warning in ThirdParty/stb_image fix an single/double precision issue in btPolyhedralContactClipping.cpp
This commit is contained in:
@@ -169,8 +169,12 @@ bool PhysicsServerExample::wantsTermination()
|
||||
|
||||
void PhysicsServerExample::stepSimulation(float deltaTime)
|
||||
{
|
||||
|
||||
m_physicsServer.processClientCommands();
|
||||
btClock rtc;
|
||||
btScalar endTime = rtc.getTimeMilliseconds() + deltaTime*btScalar(800);
|
||||
while (rtc.getTimeMilliseconds()<endTime)
|
||||
{
|
||||
m_physicsServer.processClientCommands();
|
||||
}
|
||||
}
|
||||
|
||||
void PhysicsServerExample::renderScene()
|
||||
|
||||
Reference in New Issue
Block a user