I’m trying to use rayCast in a Python script to detect objects in a world scene from a script in an overlay scene. That is, the script is running from a different scene from the one I’m trying to detect objects in.
… And this never detects any objects for some reason. The same rayCast script works fine when I run it from within the same scene, but never from the overlay scene. I know that it is specifically the rayCast function that is failing, since the rest of the script is running just as predicted. (I want to run the script from the overlay HUD scene so that each world scene can be controlled from the HUD.)
Any ideas as to how to work around this?
I can post an example .blend file if the problem isn’t clear.