mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Finished JSDocs
This commit is contained in:
parent
acb1ecce6c
commit
d3aaff82e1
1 changed files with 20 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue