Sets the offset distance.