We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8159071 commit 621673bCopy full SHA for 621673b
1 file changed
src/pixi/display/DisplayObject.js
@@ -478,8 +478,8 @@ PIXI.DisplayObject.prototype.updateTransform = function(parent)
478
this.worldAlpha = this.alpha * p.worldAlpha;
479
480
this.worldPosition.set(wt.tx, wt.ty);
481
- this.worldScale.set(Math.sqrt(wt.a * wt.a + wt.b * wt.b), Math.sqrt(wt.c * wt.c + wt.d * wt.d));
482
- this.worldRotation = Math.atan2(-wt.c, wt.d);
+ this.worldScale.set(wt.a, wt.d);
+ this.worldRotation = Math.atan2(wt.c, wt.d);
483
484
// reset the bounds each time this is called!
485
this._currentBounds = null;
0 commit comments