I was looking at a basic Box2D program, more specifically this one.
Everything is fairly simple and makes sense, except for this line:
Shape.SetAsBox((32.f/2)/SCALE, (32.f/2)/SCALE); // SCALE = 30
Now I know we divide by SCALE to scale 1m->30px but why is 32.f divided by 2? I don’t understand why we divide by 2, if my box texture is 32×32 pixels.
from the manual :