Raycasting is not working properly after the upgradation to latest three version

Hello Three js team,

I upgraded the three js to latest version i.e 116 and when i am putting objects in group or object3d and adding the group in scene than raycasting is not giving me intersect objects but when i am putting objects in scene directly than things are working fine
i want with groups also it should work as before please help me to solve this issue


This line giving an empty array

Solution is the default layer is one so it is considering the scene objects but i set it to layer 2
raycaster.layers.set(2) it works fine