Parses a body element exported by PhysicsEditor.
name | type | arguments | description |
---|---|---|---|
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. |
|
options | Phaser.Types.Physics.Matter.MatterBodyConfig | <optional> |
An optional Body configuration object that is used to set initial Body properties on creation. |
A compound Matter JS Body.
Parses an element of the "fixtures" list exported by PhysicsEditor
name | type | description |
---|---|---|
fixtureConfig | object |
The fixture object to parse. |
Parses the "vertices" lists exported by PhysicsEditor.
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. |