Clearing / resetting a transform matrix on object AS3

This’ll reset the matrix to it’s default and in so doing will clear any 3d rotation fuzziness that may have been generated if you use rotationX or rotationY or anything.

myDisplayObject.transform.matrix = new Matrix(1, 0, 0, 1, myDisplayObject.x, myDisplayObject.y);
Tech Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑