phaser - v4.0.0-rc.4
    Preparing search index...
    • Parses a body element exported by PhysicsEditor.

      Parameters

      • x: number

        The horizontal world location of the body.

      • y: number

        The vertical world location of the body.

      • config: object

        The body configuration and fixture (child body) definitions, as exported by PhysicsEditor.

      • Optionaloptions: MatterBodyConfig

        An optional Body configuration object that is used to set initial Body properties on creation.

      Returns MatterJS.BodyType