mirror of
https://github.com/photonstorm/phaser
synced 2025-01-12 05:08:54 +00:00
15 lines
345 B
JavaScript
15 lines
345 B
JavaScript
/**
|
|
* 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.
|
|
*
|
|
* @property {number} offsetX
|
|
* @readOnly
|
|
*/
|
|
|
|
var GetOffsetY = function (gameObject)
|
|
{
|
|
return gameObject.height * gameObject.originY;
|
|
};
|
|
|
|
module.exports = GetOffsetY;
|