public function collidesWithBB(AxisAlignedBB $bb) { $bb2 = $this->getBoundingBox(); return $bb2 !== null and $bb->intersectsWith($bb2); }