I know this is a basic question, but I couldn't find a definitive answer online. I've read this great answer to a question on anchorPoints in general, but the user starts his answer with:
Let's assume your rectangular sprite image
I understand very clearly in this case where the default anchor point (0.5f, 0.5f) will be. My question is: If you have an irregularly shaped PNG image (i.e., non-rectangular), how exactly is the anchorPoint determined?
My strong hunch is that the "width" and "height" in this case are taken to be equal to those of the smallest bounding rectangle. This is illustrated below:
However, there are other possibilities to calculate the center point of a non-rectangular image, such as using the "center of mass" of the image:
Can someone either confirm or refute my hunch? Thanks.