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
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ By Richard Davey, [Photon Storm](http://www.photonstorm.com)
19
19
[Subscribe to our new Phaser Newsletter](https://confirmsubscription.com/h/r/369DE48E3E86AF1E). We'll email you when new versions are released as well as send you our regular Phaser game making magazine.
* @param {string} key - The key of the Physics Data file as stored in Game.Cache.
1210
1210
* @param {string} object - The key of the object within the Physics data file that you wish to load the shape data from.
1211
-
* @param {object} options - An object containing the build options. Note that this isn't used if the data file contains multiple shapes.
1212
-
* @param {boolean} [options.optimalDecomp=false] - Set to true if you need optimal decomposition. Warning: very slow for polygons with more than 10 vertices.
1213
-
* @param {boolean} [options.skipSimpleCheck=false] - Set to true if you already know that the path is not intersecting itself.
1214
-
* @param {boolean|number} [options.removeCollinearPoints=false] - Set to a number (angle threshold value) to remove collinear points, or false to keep all points.
* Reads the physics data from a physics data file stored in the Game.Cache.
1263
-
* It will add the shape data to this Body, as well as set the density (mass), friction and bounce (restitution) values.
1259
+
* It will add the shape data to this Body, as well as set the density (mass).
1264
1260
*
1265
-
* @method Phaser.Physics.P2.Body#loadPolygon
1261
+
* @method Phaser.Physics.P2.Body#loadData
1266
1262
* @param {string} key - The key of the Physics Data file as stored in Game.Cache.
1267
1263
* @param {string} object - The key of the object within the Physics data file that you wish to load the shape data from.
1268
-
* @param {object} options - An object containing the build options:
1269
-
* @param {boolean} [options.optimalDecomp=false] - Set to true if you need optimal decomposition. Warning: very slow for polygons with more than 10 vertices.
1270
-
* @param {boolean} [options.skipSimpleCheck=false] - Set to true if you already know that the path is not intersecting itself.
1271
-
* @param {boolean|number} [options.removeCollinearPoints=false] - Set to a number (angle threshold value) to remove collinear points, or false to keep all points.
0 commit comments