sim.setJointTargetPosition

Sets the target linear/angular position of a joint. When in kinematic mode, the joint moves according to a motion profile that respects maximum velocity, acceleration and jerk values. In dynamic and position/custom control mode, the controller is instructed about the desired position

Synopsis

sim.setJointTargetPosition(int objectHandle, float targetPosition, float[] motionParams = []) sim.setJointTargetPosition(int objectHandle, float targetPosition, float[] motionParams = {})

Arguments

  • objectHandle: handle of the joint object
  • targetPosition: target position of the joint
  • motionParams: when in kinematic mode: the maximum allowed velocity, acceleration and jerk. When in dynamics mode with position control and motion profile enabled, the maximum allowed velocity, acceleration and jerk. Can be None/nil for default values. See also the maxVelAccelJerk property


See also: