diff options
Diffstat (limited to 'examples/TwoJoint/TwoJointMain.cpp')
-rw-r--r-- | examples/TwoJoint/TwoJointMain.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/TwoJoint/TwoJointMain.cpp b/examples/TwoJoint/TwoJointMain.cpp index 8625bd483..df74b0d2f 100644 --- a/examples/TwoJoint/TwoJointMain.cpp +++ b/examples/TwoJoint/TwoJointMain.cpp @@ -29,7 +29,12 @@ std::map<std::string, int> jointNameToId; int main(int argc, char* argv[]) { +#ifdef __APPLE__ + kPhysClient = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv); +#else kPhysClient = b3CreateInProcessPhysicsServerAndConnect(argc, argv); +#endif + if (!kPhysClient) return -1; // visualizer @@ -131,4 +136,4 @@ int main(int argc, char* argv[]) } b3DisconnectSharedMemory(kPhysClient); return 0; -}
\ No newline at end of file +} |