Raycasting is an expensive operation, but you can try speeding it up with octrees: Raycasting with camera - Questions - Babylon.js (babylonjs.com)
Raycasting is an expensive operation, but you can try speeding it up with octrees: Raycasting with camera - Questions - Babylon.js (babylonjs.com)