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

    Class CompositeFactory

    Index

    Constructors

    Methods

    • Removes all bodies, constraints and composites from the given composite. Optionally clearing its children recursively.

      Parameters

      Returns void

      clear

    • Scales all children in the composite, including updating physical properties (mass, area, axes, inertia), from a world-space point.

      Parameters

      Returns void

      scale

    • Sets the composite's isModified flag. If updateParents is true, all parents will be set (default: false). If updateChildren is true, all children will be set (default: false).

      Parameters

      • composite: MatterJS.CompositeType
      • isModified: boolean
      • OptionalupdateParents: boolean
      • OptionalupdateChildren: boolean

      Returns void

      setModified