| 1392 | } |
| 1393 | |
| 1394 | bool PhysicsDirect::processRequestBodyInfo(const struct SharedMemoryCommand& command, SharedMemoryStatus& status) { |
| 1395 | bool hasStatus = m_data->m_commandProcessor->processCommand(command, status, &m_data->m_bulletStreamDataServerToClient[0], SHARED_MEMORY_MAX_STREAM_CHUNK_SIZE); |
| 1396 | b3Clock clock; |
| 1397 | double startTime = clock.getTimeInSeconds(); |
| 1398 | double timeOutInSeconds = m_data->m_timeOutInSeconds; |
| 1399 | while ((!hasStatus) && (clock.getTimeInSeconds() - startTime < timeOutInSeconds)) |
| 1400 | { |
| 1401 | hasStatus = m_data->m_commandProcessor->receiveStatus(status, &m_data->m_bulletStreamDataServerToClient[0], SHARED_MEMORY_MAX_STREAM_CHUNK_SIZE); |
| 1402 | } |
| 1403 | if (hasStatus) { |
| 1404 | processBodyJointInfo(command.m_sdfRequestInfoArgs.m_bodyUniqueId, status); |
| 1405 | } |
| 1406 | m_data->m_hasStatus = hasStatus; |
| 1407 | return m_data->m_hasStatus; |
| 1408 | } |
| 1409 | |
| 1410 | bool PhysicsDirect::submitClientCommand(const struct SharedMemoryCommand& command) |
| 1411 | { |
nothing calls this directly
no test coverage detected