MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / processRequestBodyInfo

Method processRequestBodyInfo

examples/SharedMemory/PhysicsDirect.cpp:1394–1408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1392}
1393
1394bool 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
1410bool PhysicsDirect::submitClientCommand(const struct SharedMemoryCommand& command)
1411{

Callers

nothing calls this directly

Calls 3

processCommandMethod · 0.45
getTimeInSecondsMethod · 0.45
receiveStatusMethod · 0.45

Tested by

no test coverage detected