I was wondering if there is a library or feature within Babylon.js that allows to use accelerating structures for raycasting against mesh objects (like BVH, octotree). I have a large scene with multiple mesh objects and am experiencing significant performance issues when using the built-in raycaster. Also, it’d be great to be able cast planes on meshes.
I have looked through the documentation and cannot find any mention of this type of feature. Is there a way to optimize raycasting in large scenes with multiple mesh objects, or is there a library that has been developed specifically for this purpose?
Any suggestions or guidance would be greatly appreciated. Thank you!