From d3aaff82e11369472eb961a0e01a27c018a64f9c Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 9 Jan 2020 16:38:33 +0000 Subject: [PATCH] Finished JSDocs --- src/physics/matter-js/BodyBounds.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/physics/matter-js/BodyBounds.js b/src/physics/matter-js/BodyBounds.js index aa7005b34..f5e4dd71a 100644 --- a/src/physics/matter-js/BodyBounds.js +++ b/src/physics/matter-js/BodyBounds.js @@ -33,12 +33,31 @@ var BodyBounds = new Class({ function BodyBounds () { + /** + * A vec2 that stores the temporary bounds center value during calculations by methods in this class. + * + * @name Phaser.Physics.Matter.BodyBounds#boundsCenter + * @type {Phaser.Math.Vector2} + * @since 3.22.0 + */ this.boundsCenter = new Vec2(); + + /** + * A vec2 that stores the temporary center diff values during calculations by methods in this class. + * + * @name Phaser.Physics.Matter.BodyBounds#centerDiff + * @type {Phaser.Math.Vector2} + * @since 3.22.0 + */ this.centerDiff = new Vec2(); }, /** - * Returns the length of the given constraint, which is the distance between the two points. + * Parses the given body to get the bounds diff values from it. + * + * They're stored in this class in the temporary properties `boundsCenter` and `centerDiff`. + * + * This method is called automatically by all other methods in this class. * * @method Phaser.Physics.Matter.BodyBounds#parseBody * @since 3.22.0