
My ray can perfectly find a cube in the scene, but when it comes to a prefab (a sphere which jumps on Fire1) it all of the sudden does not see it.
(The ray is green in the scene. In the second case it just shoots forward, not in the flying sphere as it should’ve)
Code is exactly the same in both cases.
What could be the deal?
Thank you.