Description
|
Groups (or merges) several shapes into a compound shape (or simple shape). See also sim.ungroupShape.
|
C synopsis
|
simInt simGroupShapes(const simInt* shapeHandles,simInt shapeCount)
|
C parameters |
shapeHandles: the handles of the shapes to be grouped or merged
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=sim.groupShapes(table shapeHandles, bool merge=false)
|
Lua parameters |
shapeHandles: the handles of the shapes to be grouped or merged
merge: whether the shapes should be merged or grouped
|
Lua return values
|
Similar to C-function |