Description
|
Sets the maximum force or torque that a joint can exert. The joint will apply that force/torque until the joint target velocity has been reached. To apply a negative force/torque, set a negative target velocity. This function has no effect when the joint is not dynamically enabled, or when it is a spherical joint. See also sim.getJointMaxForce, sim.getJointForce and sim.setJointTargetVelocity. |
C/C++ synopsis
|
simInt simSetJointMaxForce(simInt objectHandle,simFloat forceOrTorque)
|
C/C++ parameters |
objectHandle: handle of the joint object
forceOrTorque: the maximum force or torque that the joint can exert. This cannot be a negative value.
|
C/C++ return value
|
-1 if operation was not successful
|
Lua synopsis
|
sim.setJointMaxForce(int objectHandle,float forceOrTorque)
|
Lua parameters |
Similar to the C-function counterpart
|
Lua return values
|
|
Python synopsis |
sim.setJointMaxForce(int objectHandle,float forceOrTorque) |