Regular API function

simSetJointTargetForce / sim.setJointTargetForce

Description Sets the force or torque that a joint can exert. See also sim.getJointTargetForce, sim.getJointForce and sim.setJointTargetVelocity.
C/C++
synopsis
simInt simSetJointTargetForce(simInt objectHandle,simFloat forceOrTorque,simBool signedValue)
C/C++
parameters
objectHandle: handle of the joint object
forceOrTorque: the maximum force or torque that the joint can exert.
signedValue: if true, the sign of the force/torque indicates the desired movement direction.
C/C++
return value
-1 if operation was not successful
Lua
synopsis
sim.setJointTargetForce(int objectHandle,float forceOrTorque,bool signedValue=true)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.setJointTargetForce(int objectHandle,float forceOrTorque)

<