UNPKG

@petkoneo/phaser3-rex-plugins

Version:
9 lines (6 loc) 232 B
import { GetDisplayWidth } from '../../size/GetDisplaySize.js'; var GetLeft = function (gameObject) { var width = GetDisplayWidth(gameObject); return gameObject.x - (width * gameObject.originX); }; export default GetLeft;