My array, objMesh, contains multiple mesh objects. Each object has a children attribute, which in turn holds an array of more mesh objects (such as countries and their islands). How can I make it so that when I hover over each mesh object, its children are also highlighted?
Currently, I have a code that allows me to highlight a region when I hover over it with the mouse pointer. However, it only highlights one region at a time, whereas I want to highlight all the related objects.
var intersects = ray.intersectObjects (objMesh);
In essence, I want to be able to hover over a parent mesh and have its children meshes highlighted as well.