Regular API function

simSetJointInterval

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 simGetJointInterval.
C synopsis simInt simSetJointInterval(simInt objectHandle,simBool cyclic,const simFloat* interval)
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 return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=simSetJointInterval(number objectHandle,boolean cyclic,table_2 interval)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page