So in my app I am using the senocular transformtool so that a user can rotate, scale, skew a sprite object by applying a matrix transformation to it.
I need to allow the user to undo this. How would I go about undoing this? I tried to just invert() the altered matrix that gets applied to the sprite object, but when I do that sprite ends up off screen in some other location and the none of he rotation or scaled stuff is undone. I also tried to invert() and the concate the inverted matrix with the the current matrix of the sprite, but that didn't work either? Any suggestions? J