sim.createJoint

Creates a joint

Synopsis

int jointHandle = sim.createJoint(int jointType, int jointMode, int options, list sizes = None) int jointHandle = sim.createJoint(int jointType, int jointMode, int options, float[2] sizes = nil)

Arguments

  • jointType:
    • sim.joint_revolute_subtype
    • sim.joint_prismatic_subtype
    • sim.joint_spherical_subtype
  • jointMode: a joint mode
  • options: reserved. Set to 0
  • sizes: array of 2 values indicating the joint length and diameter. Can be None/nil for default values

Return values

  • jointHandle: handle of the joint


See also: