From 279829b4142b11ca32d5b4eb618090931fef4ab8 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 7 Jan 2020 17:54:47 +0000 Subject: [PATCH] Added JSDocs --- src/physics/matter-js/Factory.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/physics/matter-js/Factory.js b/src/physics/matter-js/Factory.js index 3e3515a58..81b2646d9 100644 --- a/src/physics/matter-js/Factory.js +++ b/src/physics/matter-js/Factory.js @@ -389,13 +389,13 @@ var Factory = new Class({ * @method Phaser.Physics.Matter.Factory#newtonsCradle * @since 3.0.0 * - * @param {number} x - [description] - * @param {number} y - [description] - * @param {number} number - [description] - * @param {number} size - [description] - * @param {number} length - [description] + * @param {number} x - The horizontal position of the start of the cradle. + * @param {number} y - The vertical position of the start of the cradle. + * @param {number} number - The number of balls in the cradle. + * @param {number} size - The radius of each ball in the cradle. + * @param {number} length - The length of the 'string' the balls hang from. * - * @return {MatterJS.Composite} A new composite newtonsCradle body. + * @return {MatterJS.Composite} A Newton's cradle composite. */ newtonsCradle: function (x, y, number, size, length) {