Topic: rayHit with objects from another scene

Hello community,

I am currently working on a GUI for my game with lua. I ran into problems while using rayHit to detect the selected component (a button in this case). I have all GUI stuff in another scene called gui-scene.

My question: Is it possible to use rayHit with objects from another scene? If yes, which camera would I need to calculate the ray (probably the camera of gui-scene)?

Sponk

Re: rayHit with objects from another scene

mh, actually rayHit can only work with the current scene (because it uses the physics).
We should do something about that, there is a engine function doing raytracing manually that you can use in c++,
it should be ported it to lua.