getWallDist works