add SIM_PARAM_UPDATE_DELTA_TIME flag to fix setting the time step

in shared memory API
This commit is contained in:
Erwin Coumans
2015-10-24 13:50:11 -07:00
parent 818037c011
commit ec1947bbbd

View File

@@ -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;
}