You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now allows you to specify options object to override the loaded config. Also removed un-used parameters and fixed JSDocs. Finally, using Common.clone to avoid mutating the loaded JSON.
* @param {object} config - body configuration and fixture (child body) definitions.
30
+
* @param {number} x - The horizontal world location of the body.
31
+
* @param {number} y - The vertical world location of the body.
32
+
* @param {object} config - The body configuration and fixture (child body) definitions, as exported by PhysicsEditor.
33
+
* @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.
33
34
*
34
-
* @return {object} A matter body, consisting of several parts (child bodies)
35
+
* @return {MatterJS.Body} A compound Matter JS Body.
* @param {object} vertexSets - The vertex lists to parse.
109
-
* @param {object} options - Matter body options.
110
+
* @param {array} vertexSets - The vertex lists to parse.
111
+
* @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.
110
112
*
111
-
* @return {object[]} - A list of matter bodies.
113
+
* @return {MatterJS.Body[]} - An array of Matter JS Bodies.
0 commit comments