[]
An object used for storing cached results for performance reasons. This is used internally only and is automatically managed.
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.
[]
Optional gravityAn 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. This is automatically managed when bodies, constraints or composites are added or removed.
false
An arbitrary String name to help the user identify and manage composites.
"Composite"
The Composite that is the parent of this composite. It is automatically managed by the Matter.Composite methods.
null
An object reserved for storing plugin-specific properties.
{}
A String denoting the type of object.
Generated using TypeDoc
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.