An array of Composite that are direct children of this composite.
To add or remove composites you should use Composite.add and Composite.remove methods rather than directly modifying this property.
If you wish to recursively find all descendants, you should use the Composite.allComposites method.
An array of Constraint that are direct children of this composite.
To add or remove constraints you should use Composite.add and Composite.remove methods rather than directly modifying this property.
If you wish to recursively find all descendants, you should use the Composite.allConstraints method.
An integer Number uniquely identifying number generated in Composite.create by Common.nextId.
A flag that specifies whether the composite has been modified during the current step.
Most Matter.Composite methods will automatically set this flag to true to inform the engine of changes to be handled.
If you need to change it manually, you should use the Composite.setModified method.
An arbitrary String name to help the user identify and manage composites.
OptionalparentThe Composite that is the parent of this composite. It is automatically managed by the Matter.Composite methods.
An object reserved for storing plugin-specific properties.
A String denoting the type of object.
An array of
Bodythat are direct children of this composite. To add or remove bodies you should useComposite.addandComposite.removemethods rather than directly modifying this property. If you wish to recursively find all descendants, you should use theComposite.allBodiesmethod.