I set up a playground to do some simple testing of the octree methods. I don’t think I understand what the octree.intersects method is supposed to be doing. In the playground I linked below, an octree is created using the scene once everything has been loaded. I created a sphere centered on the cameras position to visually represent what a 200 unit sphere would contain from that position (it should be empty).
When I run the query:
const nearby = octree.intersects(camera.position, 200)
const nearbyCount = nearby.length
I get a result of 6 meshes instead of zero. So clearly I have the wrong interpretation on what that method does. What is it doing?