phaser/v3/src/display/bounds/GetBottom.js

17 lines
360 B
JavaScript
Raw Normal View History

2017-02-28 00:32:30 +00:00
/**
2017-10-12 00:24:01 +00:00
* [description]
*
* @function Phaser.Display.Bounds.GetBottom
* @since 3.0.0
*
* @param {Phaser.GameObjects.GameObject} gameObject - [description]
*
* @return {number} [description]
*/
2017-02-28 00:32:30 +00:00
var GetBottom = function (gameObject)
{
return (gameObject.y + gameObject.height) - (gameObject.height * gameObject.originY);
2017-02-28 00:32:30 +00:00
};
module.exports = GetBottom;