From 09a913d4d7434e02f0b0a7e53ad62b2afa496995 Mon Sep 17 00:00:00 2001 From: Tordjx <101280438+Tordjx@users.noreply.github.com> Date: Mon, 17 Jun 2024 17:57:09 +0200 Subject: [PATCH] Added the eCONNECT_SHARED_MEMORY_SERVER_CASE --- examples/RobotSimulator/b3RobotSimulatorClientAPI.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/RobotSimulator/b3RobotSimulatorClientAPI.cpp b/examples/RobotSimulator/b3RobotSimulatorClientAPI.cpp index 724a4cef70..a13e9e4a07 100644 --- a/examples/RobotSimulator/b3RobotSimulatorClientAPI.cpp +++ b/examples/RobotSimulator/b3RobotSimulatorClientAPI.cpp @@ -102,6 +102,16 @@ bool b3RobotSimulatorClientAPI::connect(int mode, const std::string& hostName, i sm = b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect(m_data->m_guiHelper); break; } + case eCONNECT_SHARED_MEMORY_SERVER: + { + if (portOrKey >= 0) + { + key = portOrKey; + } + sm = b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect3(0, key); + break; + } + case eCONNECT_GUI: {