mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Removed localToWorld (no longer needed)
This commit is contained in:
parent
d15d910778
commit
381963c014
1 changed files with 0 additions and 26 deletions
|
@ -209,32 +209,6 @@ var Container = new Class({
|
|||
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
|
||||
* severing all ties to parent resources.
|
||||
|
|
Loading…
Reference in a new issue