sim.getObjects

Retrieves object handles. Use this in a loop where index starts at 0 and is incremented to get all object handles in the scene

Synopsis

int objectHandle = sim.getObjects(int index, int objectType) int objectHandle = sim.getObjects(int index, int objectType)

Arguments

  • index: object index. First object is located at index 0
  • objectType: object type (sim.object_shape_type, sim.object_joint_type, etc. (see the object types) or sim.handle_all for any type of object

Return values

  • objectHandle: handle of the object or -1 if no object is located at that index


See also: