From 0092a1a55d23de3843ad6354be79336f02c156fc Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Mon, 14 Nov 2016 16:14:27 -0800 Subject: [PATCH] fix API to use b3InitCreateUserConstraintCommand instead of b3CreateJoint --- examples/RoboticsLearning/b3RobotSimAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/RoboticsLearning/b3RobotSimAPI.cpp b/examples/RoboticsLearning/b3RobotSimAPI.cpp index 5106b6eeb..f4ad1fcb5 100644 --- a/examples/RoboticsLearning/b3RobotSimAPI.cpp +++ b/examples/RoboticsLearning/b3RobotSimAPI.cpp @@ -683,7 +683,7 @@ void b3RobotSimAPI::createJoint(int parentBodyIndex, int parentJointIndex, int c b3Assert(b3CanSubmitCommand(m_data->m_physicsClient)); if (b3CanSubmitCommand(m_data->m_physicsClient)) { - statusHandle = b3SubmitClientCommandAndWaitStatus(m_data->m_physicsClient, b3CreateJoint(m_data->m_physicsClient, parentBodyIndex, parentJointIndex, childBodyIndex, childJointIndex, jointInfo)); + statusHandle = b3SubmitClientCommandAndWaitStatus(m_data->m_physicsClient, b3InitCreateUserConstraintCommand(m_data->m_physicsClient, parentBodyIndex, parentJointIndex, childBodyIndex, childJointIndex, jointInfo)); } }