Pointer-Event: None like property for p5.js?

So I was wondering if there is any way of making a click pass through from an object at front to an object behind, I’m in a 3D canvas
I have a cube made of boxes, and would like to show the stroke of boxes around the center box, but the click to be made to the box in the center.
Thanks in advance!

WebGL libraries like three.js has RayCaster object, which returns you with objects intersected at any given pixel, but I haven’t seen 3d raycaster examples made with p5.js.