public void CreateRealPosition() { position = voxSpace.GetFloorGridCellRectCenterPos(floorCellIdxX, floorCellIdxZ); yPosRange = voxSpace.GetWallGridCellPosRange(heightCellStartIdx, heightCellEndIdx); position.y = (yPosRange[0] + yPosRange[1]) / 2f; }