Regular API function


Description Groups (or merges) several shapes into a compound shape (or simple shape). See also simUngroupShape.
C synopsis simInt simGroupShapes(const simInt* shapeHandles,simInt shapeCount)
C parameters
shapeHandles: the handles of the shapes you wish to group
shapeCount: the size of the shapeHandles array. A negative number indicates that we want to merge the shapes instead of grouping them.
C return value
-1 if operation was not successful. Otherwise the handle of the resulting compound shape.
Lua synopsis number shapeHandle=simGroupShapes(table shapeHandles)
Lua parameters
Similar to C-function
Lua return values
Similar to C-function

All regular API functions on one page