Calculates block shape for collisions.