I'm trying to work out how to programatically apply Y-axis scaling to a sprite that has been rotated, but apply the scaling along the original/screen axis and not the rotated local one.
I've tried various combinations of modifying rotation_degrees
and scale
or using a Transform2D
to attempt to apply the rotation and then scale in order, but nothing seems to give the result I want. I've included some badly drawn diagrams to try and explain what I'm after, using an example of a square and a 45 degree rotation. I may be missing something obvious but I'd appreciate any pointers in the right direction to get the intended result.
What I currently get:

What I want:
