Regular API
function
simGetObjects (remote API equivalent:
simxGetObjects
)
Description
Retrieves object handles. Use this in a loop where index starts at 0 and is incremented to get all object handles in the scene. See also
simGetObjectsInTree
.
C synopsis
simInt simGetObjects(simInt index,simInt objectType)
C parameters
index
: object index (not handle!). 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
C return value
handle of the object or -1 if no object is located at that index or in case of an error
Lua synopsis
number objectHandle=simGetObjects(number index,number objectType)
Lua parameters
Same as C-function
Lua return values
Same as C-function
All regular API functions on one page