phaser/v3/src/display/bounds/GetBottom.js
2017-10-12 01:24:01 +01:00

16 lines
360 B
JavaScript

/**
* [description]
*
* @function Phaser.Display.Bounds.GetBottom
* @since 3.0.0
*
* @param {Phaser.GameObjects.GameObject} gameObject - [description]
*
* @return {number} [description]
*/
var GetBottom = function (gameObject)
{
return (gameObject.y + gameObject.height) - (gameObject.height * gameObject.originY);
};
module.exports = GetBottom;