61 $inset = 0.5 - $this->getThickness() / 2;
66 $connectWest = isset($this->connections[Facing::WEST]);
67 $connectEast = isset($this->connections[Facing::EAST]);
69 if($connectWest || $connectEast){
71 $bbs[] = AxisAlignedBB::one()
72 ->squash(Axis::Z, $inset)
73 ->extend(Facing::UP, 0.5)
74 ->trim(Facing::WEST, $connectWest ? 0 : $inset)
75 ->trim(Facing::EAST, $connectEast ? 0 : $inset);
78 $connectNorth = isset($this->connections[Facing::NORTH]);
79 $connectSouth = isset($this->connections[Facing::SOUTH]);
81 if($connectNorth || $connectSouth){
83 $bbs[] = AxisAlignedBB::one()
84 ->squash(Axis::X, $inset)
85 ->extend(Facing::UP, 0.5)
86 ->trim(Facing::NORTH, $connectNorth ? 0 : $inset)
87 ->trim(Facing::SOUTH, $connectSouth ? 0 : $inset);
90 if(count($bbs) === 0){
94 ->extend(Facing::UP, 0.5)
95 ->contract($inset, 0, $inset)