sim.getJointPosition

Retrieves the linear/angular position of a joint. This function cannot be used with spherical joints (use sim.getObjectChildPose instead)

Synopsis

float position = sim.getJointPosition(int objectHandle) float position = sim.getJointPosition(int objectHandle)

Arguments

  • objectHandle: handle of the joint

Return values

  • position: linear/angular position of the joint


See also: