Regular API function

simGetCollectionObjects / sim.getCollectionObjects

Description Retrieves the object handles that compose a collection. See also the other functions related to collections.
C synopsis simInt* simGetCollectionObjects(simInt collectionHandle,simInt* objectCount)
C parameters
collectionHandle: handle of the collection
objectCount: pointer to a value receiving the number of returned object handles
C return value
pointer to n object handles, or nullptr if an error occurred. The user is in charge of destroying the returned buffer with simReleaseBuffer
Lua synopsis table[] objectHandles=sim.getCollectionObjects(int collectionHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart