I'm trying to rotate a model around some axes, but this rotates it around the world origin. I understand that I need to translate the object relative to its own size before rotating it, but I don't know by how much.
I've done it by trial and error until now. How can I automatically read a model's width, height and position?