phaser - v4.0.0-rc.4
    Preparing search index...

    Interface ICompositeDefinition

    interface ICompositeDefinition {
        bodies?: MatterJS.BodyType[];
        composites?: MatterJS.CompositeType[];
        constraints?: MatterJS.ConstraintType[];
        id?: number;
        isModified?: boolean;
        label?: string;
        parent?: MatterJS.CompositeType;
        type?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    bodies?: MatterJS.BodyType[]

    An array of Body that are direct children of this composite. To add or remove bodies 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.allBodies method.

    []
    
    composites?: MatterJS.CompositeType[]

    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.

    []
    
    constraints?: MatterJS.ConstraintType[]

    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.

    []
    
    id?: number

    An integer Number uniquely identifying number generated in Composite.create by Common.nextId.

    isModified?: boolean

    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.

    false
    
    label?: string

    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
    
    type?: string

    A String denoting the type of object.

    "composite"