Regular API function

simCreateJoint / sim.createJoint

Description Creates a joint. See also sim.setJointInterval.
C/C++
synopsis
int simCreateJoint(int jointType,int jointMode,int options,const double* sizes,const double* reservedA,const double* 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)