Hi all!
Is there a way to do something similar to this? Could not find in the docs :[
scene.onPointerDown = function(e, pick_result){
var ray = scene.createPickingRay(
scene.pointerX,
scene.pointerY,
BABYLON.Matrix.Identity(),
camera_free,
false
);
var hit = scene.pickWithRay(ray);
if(hit.pickedMesh){
// this
inspector.display_mesh_info(hit.pickedMesh.name);
}
}
Thank you!