Regular API function

simGetJointTargetPosition / sim.getJointTargetPosition

Description Retrieves the target position of a joint. See also sim.setJointTargetPosition.
C/C++
synopsis
simInt simGetJointTargetPosition(simInt objectHandle,simFloat* targetPosition)
C/C++
parameters
objectHandle: handle of the joint object
targetPosition (output): target position of the joint (angular or linear value depending on the joint type)
C/C++
return value
-1 if operation was not successful
Lua synopsis float targetPosition=sim.getJointTargetPosition(int objectHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
targetPosition: target position of the joint
Python synopsis float targetPosition=sim.getJointTargetPosition(int objectHandle)