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

16 lines
345 B
JavaScript
Raw Normal View History

2017-02-28 00:32:30 +00:00
/**
* The amount the Game Object is visually offset from its x coordinate.
* This is the same as `width * origin.x`.
* It will only be > 0 if origin.x is not equal to zero.
2017-02-28 00:32:30 +00:00
*
* @property {number} offsetX
* @readOnly
*/
var GetOffsetY = function (gameObject)
{
return gameObject.height * gameObject.originY;
2017-02-28 00:32:30 +00:00
};
module.exports = GetOffsetY;