Regular API function

simSetJointPosition / sim.setJointPosition (remote API equivalent: simxSetJointPosition)

Description Sets the intrinsic position of a joint. May have no effect depending on the joint mode. This function cannot be used with spherical joints (use sim.setSphericalJointMatrix instead). See also sim.getJointPosition and sim.setJointTargetPosition.
C synopsis simInt simSetJointPosition(simInt objectHandle,simFloat position)
C parameters
objectHandle: handle of the joint object
position: 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 result=sim.setJointPosition(number objectHandle,number position)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page