Regular API function

simSetJointDependency / sim.setJointDependency

Description Sets a joint dependent of another joint. The dependent joint should first be set into dependent mode via sim.setJointMode.
C synopsis simInt simSetJointDependency(simInt jointHandle,simInt masterJointHandle,simFloat offset,simFloat coeff)
C parameters
jointHandle: handle of the joint to become slave
masterJointHandle: handle of the joint to become master, or -1 to free the slave joint from dependency.
offset: the offset in equation slave=offset+master*coeff
coeff: the coeff in equation slave=offset+master*coeff
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=sim.setJointDependency(number jointHandle,number masterJointHandle,number offset,number coeff)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page