simGetObjects
Retrieves object handles. Use this in a loop where index starts at 0 and is incremented to get all
object handles in the scene
C++ synopsis
int simGetObjects(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
- handle of the object or -1 if no object is located at that index or in case of an error
See also:
|