reset simulation in test/SharedMemory/test for proper cleanup,

and it can restart without shutting down/restarting physics server
w
This commit is contained in:
Erwin Coumans (Google)
2015-08-27 17:51:31 -07:00
parent 2e7949bb3e
commit 3d130d9d66
3 changed files with 19 additions and 0 deletions

View File

@@ -80,6 +80,16 @@ int b3InitStepSimulationCommand(struct SharedMemoryCommand* command)
}
int b3InitResetSimulationCommand(struct SharedMemoryCommand* command)
{
b3Assert(command);
command->m_type = CMD_RESET_SIMULATION;
command->m_updateFlags = 0;
return 0;
}
int b3JointControlCommandInit(struct SharedMemoryCommand* command, int controlMode)
{