Fix getWorldBounds clash

This commit is contained in:
Richard Davey 2018-04-12 14:25:46 +01:00
parent c57112414a
commit f13bbca9c3
3 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -406,7 +406,7 @@ var Transform = {
if (!parent)
{
return tempMatrix();
return this.getLocalTransformMatrix(tempMatrix);
}
var parents = [];

View file

@ -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;