I'm making a level editor and I want to be able to rotate a sprite, and resize it at runtime, but after I rotate it, I want it's height/width to be based on it's new angle. kinda resetting it's bounding box, like you would in photoshop or something.
so, for example, if i rotate it 90 degrees, essentially it's width becomes it's height (this example wouldn't be hard, but I want it to work for any angle).
Does that make sense?
I've been at this for a while, and I can't find anything in the forums.. Is there a plug-in or something that does this?
Any help would be much appreciated!