58 $inset = 0.5 - $this->getThickness() / 2;
62 $connectWest = isset($this->connections[Facing::WEST]);
63 $connectEast = isset($this->connections[Facing::EAST]);
65 if($connectWest || $connectEast){
67 $bbs[] = AxisAlignedBB::one()
68 ->squash(Axis::Z, $inset)
69 ->extend(Facing::UP, 0.5)
70 ->trim(Facing::WEST, $connectWest ? 0 : $inset)
71 ->trim(Facing::EAST, $connectEast ? 0 : $inset);
74 $connectNorth = isset($this->connections[Facing::NORTH]);
75 $connectSouth = isset($this->connections[Facing::SOUTH]);
77 if($connectNorth || $connectSouth){
79 $bbs[] = AxisAlignedBB::one()
80 ->squash(Axis::X, $inset)
81 ->extend(Facing::UP, 0.5)
82 ->trim(Facing::NORTH, $connectNorth ? 0 : $inset)
83 ->trim(Facing::SOUTH, $connectSouth ? 0 : $inset);
86 if(count($bbs) === 0){
90 ->extend(Facing::UP, 0.5)
91 ->contract($inset, 0, $inset)