mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Fix getWorldBounds clash
This commit is contained in:
parent
c57112414a
commit
f13bbca9c3
3 changed files with 5 additions and 5 deletions
|
@ -178,7 +178,7 @@ var GetBounds = {
|
|||
// defined per corner we only do it once.
|
||||
if (this.parentContainer)
|
||||
{
|
||||
var parentMatrix = this.parentContainer.getWorldTransformMatrix();
|
||||
var parentMatrix = this.parentContainer.getBoundsTransformMatrix();
|
||||
|
||||
this.getTopLeft(output);
|
||||
parentMatrix.transformPoint(output.x, output.y, output);
|
||||
|
|
|
@ -406,7 +406,7 @@ var Transform = {
|
|||
|
||||
if (!parent)
|
||||
{
|
||||
return tempMatrix();
|
||||
return this.getLocalTransformMatrix(tempMatrix);
|
||||
}
|
||||
|
||||
var parents = [];
|
||||
|
|
|
@ -407,15 +407,15 @@ var Container = new Class({
|
|||
},
|
||||
|
||||
/**
|
||||
* Returns the world transform matrix.
|
||||
* Returns the world transform matrix as used for Bounds checks.
|
||||
* The returned matrix is a temporal and shouldn't be stored.
|
||||
*
|
||||
* @method Phaser.GameObjects.Container#getWorldTransformMatrix
|
||||
* @method Phaser.GameObjects.Container#getBoundsTransformMatrix
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @return {Phaser.GameObjects.Components.TransformMatrix} The world transform matrix.
|
||||
*/
|
||||
getWorldTransformMatrix: function ()
|
||||
getBoundsTransformMatrix: function ()
|
||||
{
|
||||
var tempMatrix = this.tempTransformMatrix;
|
||||
|
||||
|
|
Loading…
Reference in a new issue