Phaser API Documentation

  Version: 
<static> parseVertices(vertexSets, [options])

Description:

Parses the "vertices" lists exported by PhysicsEditor.

Parameters:

name type arguments description
vertexSets array

The vertex lists to parse.

options Phaser.Types.Physics.Matter.MatterBodyConfig <optional>

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

Returns:
Description:
  • An array of Matter JS Bodies.
Type:
  • Array.
Examples:
Since: 3.10.0