Regular API function

simSetJointForce
remote API equivalent: simxSetJointForce
RosPlugin API equivalent: simRosSetJointForce

Description Sets the maximum force or torque that a joint can exert. This function has no effect when the joint is not dynamically enabled, or when it is a spherical joint. See also simGetJointForce.
C synopsis simInt simSetJointForce(simInt objectHandle,simFloat forceOrTorque)
C parameters
objectHandle: handle of the joint object
forceOrTorque: the maximum force or torque that the joint can exert
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=simSetJointForce(number objectHandle,number forceOrTorque)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page