mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 04:23:30 +00:00
16 lines
360 B
JavaScript
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;
|