phaser - v3.90.0
    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

    • Rotates all children in the composite by a given angle about the given point, without imparting any angular velocity.

      Parameters

      Returns void

      rotate

    • 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

    • Translates all children in the composite by a given vector relative to their current positions, without imparting any velocity.

      Parameters

      Returns void

      translate