In the scenario I have created, there are multiple groups of objects (Object3Ds) and I have established a mechanism for clicking or hovering over them to trigger specific actions. However, when using the raycaster to identify the objects under the cursor, it identifies the individual object rather than the group itself, which is what I require.
The snippet of code used to obtain the objects beneath the cursor appears as follows:
raycaster.setFromCamera(mouse, camera);
clickobjstore = raycaster.intersectObjects(objects, true);
// The problem lies in the fact that intersects[0] points to an individual object within the group, not the group itself!
for (j = 0; j < intersects[0].object.children.length; j++) {
intersects[0].object.children[j].material.color.setHex(0x1A75FF);
}