Description
|
Retrieves the target position of a joint. See also simSetJointTargetPosition. |
C synopsis
|
simInt simGetJointTargetPosition(simInt objectHandle,simFloat* targetPosition)
|
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 return value
|
-1 if operation was not successful. In a future release, a more differentiated return value might be available
|
Lua synopsis
|
number targetPosition=simGetJointTargetPosition(number objectHandle)
|
Lua parameters |
Same as C-function
|
Lua return values
|
targetPosition: target position of the joint, or nil in case of an error.
|