You want to check off the box on bounding boxes, so let's cut the bad puns and dive right into it. To understand bounding boxes, consider this stock photo of the sherlock holmes among penguins and its bounding box:
In short, a bounding box is the smallest box that contains every feature of an object. This makes them a powerful tool to realize intersections.
There are many ways to define such a bounding box mathematically, in scenery, we do it via a min vector and a max vector:
Here is a visual explanation of what this looks like:
Note that both of these vectors are local coordinates so that the bounding box remains flexible when translating or rescaling a node.
Accessing the bounding box of a node is rather easy:
In case you are dealing with a more sphere-like object, e.g. a biological cell, you should consider using a bounding sphere instead. Simply use the function: