From ec1947bbbd38d1068a04f6321290d343f1357ec4 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 24 Oct 2015 13:50:11 -0700 Subject: [PATCH] add SIM_PARAM_UPDATE_DELTA_TIME flag to fix setting the time step in shared memory API --- examples/SharedMemory/PhysicsClientC_API.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/SharedMemory/PhysicsClientC_API.cpp b/examples/SharedMemory/PhysicsClientC_API.cpp index 1a0acbcdb..2a81fcdab 100644 --- a/examples/SharedMemory/PhysicsClientC_API.cpp +++ b/examples/SharedMemory/PhysicsClientC_API.cpp @@ -95,6 +95,7 @@ int b3PhysicsParamSetTimeStep(b3SharedMemoryCommandHandle commandHandle, double { struct SharedMemoryCommand* command = (struct SharedMemoryCommand*) commandHandle; b3Assert(command->m_type == CMD_SEND_PHYSICS_SIMULATION_PARAMETERS); + command->m_updateFlags |= SIM_PARAM_UPDATE_DELTA_TIME; command->m_physSimParamArgs.m_deltaTime = timeStep; return 0; }