this is example
https://jsfiddle.net/2o3jq0c6/8/
or
or
I want intersectObject mPart_DZ.
But it’s been obscured by an outer layer transparent object mPart_DJKT1 ,
i can’t pick up this object mPart_DZ .
if(!event.clientX && !event.touches){ resolve({status:false, intersectObj:null})}
const clientX = event.clientX || event.touches[ 0 ].clientX;
const clientY = event.clientY || event.touches[ 0 ].clientY;
this.pointer.x = ( clientX / window.innerWidth ) * 2 - 1;
this.pointer.y = - ( clientY / window.innerHeight ) * 2 + 1;
this.raycaster.setFromCamera( this.pointer, this.camera );
const intersects = this.raycaster.intersectObjects( this.modelNodeList, true);
// intersects.forEach((item:any)=>{
// if(item.object.name === 'mPart_DZ') {
// alert(1);
// }
// console.log(item.object.name);
// })
if ( intersects.length <= 0 ) {
resolve({status:false, intersectObj:null})
}else {
const intersectObj = intersects[ 0 ].object;
resolve({status:true, intersectObj:intersectObj});
}