Hello, is there any way to resize a rectangle relative to its center? As far as I know, its origin is only used for rotation, scaling, and positioning. Using .setSize() only resizes relative to the shape's top-left corner.
Currently trying to draw my AABBs for rotating rectangles but I can't figure out how to draw them.
What I have are the minimum vectors of the AABBs (top-left points) and their origin. Is there any workaround to this, or should I just use VertexArrays?
I'd prefer if I didn't have to do the latter, since I've already spent about 3 hours trying to figure out the workaround.