I created one sphere and Points and added to the scene to (0,0,0)
now I want to select these with raycaster. My aim to select all nearby meshes and points within some range.
so I used “params” properties of raycaster.
but It only works with points.
when I clicked on right away on points and mesh. I got result of both intersection.
but when I clicked at some distance I can only got result of Points.
var raycaster = new THREE.Raycaster();
raycaster.params.Mesh.threshold = 20
raycaster.params.Points.threshold = 20
In image white dot it my cursor, Red is Points object, and yellow is my mesh.
There is no threshold parameter for meshes. If you check the documentation page of Raycaster closely, you will see that it is only possible to define a threshold for point clouds and lines. The configuration object for meshes is actually empty.
Although empty, the mesh configuration object was added just for the case a configuration parameter might be required in the future.