Regular API function

simSetJointMode / sim.setJointMode

Description Sets the operation mode of a joint. Might have as side-effect the change of additional properties of the joint. See also sim.getJointMode and sim.setJointDependency.
C synopsis simInt simSetJointMode(simInt jointHandle,simInt jointMode,simInt options)
C parameters
jointHandle: handle of the joint object
jointMode: a joint mode value
options: bit-coded. For now only bit 0 is used (if set (1), the joint operates in hybrid mode)
C return value
-1 if operation was not successful
Lua synopsis sim.setJointMode(number jointHandle,number jointMode,number options)
Lua parameters
Similar to the C-function counterpart
Lua return values

All regular API functions on one page