| 3590 | }; |
| 3591 | |
| 3592 | bool PhysicsServerCommandProcessor::loadMjcf(const char* fileName, char* bufferServerToClient, int bufferSizeInBytes, bool useMultiBody, int flags) |
| 3593 | { |
| 3594 | btAssert(m_data->m_dynamicsWorld); |
| 3595 | if (!m_data->m_dynamicsWorld) |
| 3596 | { |
| 3597 | b3Error("loadSdf: No valid m_dynamicsWorld"); |
| 3598 | return false; |
| 3599 | } |
| 3600 | |
| 3601 | m_data->m_sdfRecentLoadedBodies.clear(); |
| 3602 | |
| 3603 | CommonFileIOInterface* fileIO = m_data->m_pluginManager.getFileIOInterface(); |
| 3604 | BulletMJCFImporter u2b(m_data->m_guiHelper, m_data->m_pluginManager.getRenderInterface(), fileIO, flags); |
| 3605 | |
| 3606 | bool useFixedBase = false; |
| 3607 | MyMJCFLogger2 logger; |
| 3608 | bool loadOk = u2b.loadMJCF(fileName, &logger, useFixedBase); |
| 3609 | if (loadOk) |
| 3610 | { |
| 3611 | processImportedObjects(fileName, bufferServerToClient, bufferSizeInBytes, useMultiBody, flags, u2b); |
| 3612 | } |
| 3613 | return loadOk; |
| 3614 | } |
| 3615 | |
| 3616 | bool PhysicsServerCommandProcessor::loadSdf(const char* fileName, char* bufferServerToClient, int bufferSizeInBytes, bool useMultiBody, int flags, btScalar globalScaling) |
| 3617 | { |
nothing calls this directly
no test coverage detected