Removed localToWorld (no longer needed)

This commit is contained in:
Richard Davey 2018-04-09 16:01:16 +01:00
parent d15d910778
commit 381963c014

View file

@ -209,32 +209,6 @@ var Container = new Class({
return output; return output;
}, },
/**
*
*
* @method Phaser.GameObjects.Container#localToWorld
* @since 3.4.0
*
* @param {Phaser.GameObjects.GameObject} child - The child of this Container.
* @param {Phaser.Cameras.Scene2D.Camera} [camera] - The camera to transform against.
* @param {(object|Phaser.Geom.Point|Phaser.Math.Vector2)} [output] - A destination object to store the transformed point in. If none given a Vector2 will be created and returned.
*
* @return {(object|Phaser.Geom.Point|Phaser.Math.Vector2)} The transformed point.
*/
localToWorld: function (child, camera, output)
{
if (camera === undefined) { camera = this.scene.sys.cameras.main; }
if (output === undefined) { output = new Vector2(); }
if (this.exists(child))
{
// Do matrix magic here
// See: Camera.getWorldPoint and InputManager.hitTest
}
return output;
},
/** /**
* Destroys this Container removing it and all children from the Display List and * Destroys this Container removing it and all children from the Display List and
* severing all ties to parent resources. * severing all ties to parent resources.