
simCreateJoint / sim.createJoint
Description
|
Creates a joint. See also sim.setJointInterval.
|
C synopsis
|
simInt simCreateJoint(simInt jointType,simInt jointMode,simInt options,const simFloat* sizes,const simFloat* colorA,const simFloat* colorB)
|
C parameters |
options: bit-coded. For now only bit 0 is used (if set (1), the joint operates in hybrid mode)
sizes: pointer to 2 values indicating the joint length and diameter. Can be NULL for default values
colorA: pointer to 4x3 values for joint color A (ambient_diffuse rgb, 3 reserved values (set to zero), specular rgb and emission rgb). Can be NULL for default values
colorB: pointer to 4x3 values for joint color B (ambient_diffuse rgb, 3 reserved values (set to zero), specular rgb and emission rgb). Can be NULL for default values
|
C return value
|
-1 if operation was not successful, otherwise the handle of the joint
|
Lua synopsis
|
number jointHandle=sim.createJoint(number jointType,number jointMode,number options,table_2 sizes=nil,table_12 colorA=nil,table_12 colorB=nil)
|
Lua parameters |
Same as C-function
|
Lua return values
|
Same as C-function
|
All regular API functions on one page
|