Description
|
Retrieves the force or torque that a joint can exert. See also sim.setJointTargetForce and sim.getJointTargetVelocity.
|
C/C++ synopsis
|
simInt simGetJointTargetForce(simInt jointHandle,simFloat* forceOrTorque)
|
C/C++ parameters |
jointHandle: handle of the joint.
forceOrTorque: the maximum force or torque the joint can apply. The sign indicates the desired movement direction.
|
C/C++ return value
|
-1 if operation was not successful. .
|
Lua synopsis
|
float forceOrTorque=sim.getJointTargetForce(int jointHandle)
|
Lua parameters |
Similar to the C-function counterpart |
Lua return values
|
Similar to the C-function counterpart |
Python synopsis |
float forceOrTorque=sim.getJointTargetForce(int jointHandle) |