Regular API function

simCreateJoint / sim.createJoint

Description Creates a joint. See also sim.setJointInterval.
C/C++
synopsis
simInt simCreateJoint(simInt jointType,simInt jointMode,simInt options,const simFloat* sizes,const simFloat* reservedA,const simFloat* reservedB)
C/C++
parameters
jointMode: a joint mode value
options: reserved. Set to 0.
sizes: pointer to 2 values indicating the joint length and diameter. Can be nullptr for default values
reservedA + reservedB: set to nullptr
C/C++
return value
-1 if operation was not successful, otherwise the handle of the joint
Lua
synopsis
int jointHandle=sim.createJoint(int jointType,int jointMode,int options,float[2] sizes=nil)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis
int jointHandle=sim.createJoint(int jointType,int jointMode,int options,list sizes=None)