Regular API
function
simCreateCollection / sim.createCollection
Description
Creates a new
collection
. See also
sim.removeCollection
and
sim.addObjectToCollection
.
C synopsis
simInt simCreateCollection(const simChar* collectionName,simInt options)
C parameters
collectionName
: the name of the collection. Use an empty string for a default name.
options
: bit-coded options:
bit 0 set (1): collection overrides collidable, measurable, renderable and detectable properties.
C return value
-1 if operation was not successful, otherwise the handle of the new collection.
Lua synopsis
number collectionHandle=sim.createCollection(string collectionName,number options)
Lua parameters
Same as C-function
Lua return values
Same as C-function
All regular API functions on one page