Skip to content

Commit 3accf46

Browse files
authored
Fix setPolygon documentation
The order of arguments in `Body.setPolygon`'s documentation was the opposite from the actual code.
1 parent 1ebfdef commit 3accf46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/physics/matter-js/components/SetBody.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ var SetBody = {
6868
* @method Phaser.Physics.Matter.Components.SetBody#setPolygon
6969
* @since 3.0.0
7070
*
71-
* @param {number} sides - The number of sides the polygon will have.
7271
* @param {number} radius - The "radius" of the polygon, i.e. the distance from its center to any vertex. This is also the radius of its circumcircle.
72+
* @param {number} sides - The number of sides the polygon will have.
7373
* @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.
7474
*
7575
* @return {Phaser.GameObjects.GameObject} This Game Object.

0 commit comments

Comments
 (0)