Regular API function

simSetJointInterval / sim.setJointInterval

Description Sets the interval parameters of a joint (i.e. range values). The attributes or interval parameters might have no effect, depending on the joint-type. See also sim.getJointInterval.
C/C++
synopsis
simInt simSetJointInterval(simInt objectHandle,simBool cyclic,const simFloat* interval)
C/C++
parameters
objectHandle: handle of the joint object
cyclic: indicates whether the joint is cyclic. Only revolute joints with a pitch of 0 can be cyclic
interval: interval of the joint. interval[0] is the joint minimum allowed value, interval[1] is the joint range (i.e. the maximum allowed value is interval[0]+interval[1])
C/C++
return value
-1 if operation was not successful
Lua
synopsis
sim.setJointInterval(int objectHandle,bool cyclic,float[2] interval)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Python
synopsis
sim.setJointInterval(int objectHandle,bool cyclic,list interval)

<