Raycasting with camera

Hello and welcome to the Babylon community!

Raycasting is a pretty expensive operation, so you’ll really want to optimize it as much as possible. Some techniques for this are Octrees: Optimizing With Octrees | Babylon.js Documentation (babylonjs.com) and GPU Picking: GPU picking demo - Demos and projects - Babylon.js (babylonjs.com)