In the application I am working on, I will need to know if certain objects (some of which move) can be reached by EM waves originating off some source point. The waves can find an object via two methods, either by line of sight, or by reflections (for example up to two reflections maximum). As you can imagine, this will mean I will need to create several rays off the source point that can detect collisions, and I will need to do that in real time. A simple but perhaps very ineffective way to this problem would be to create several CollisionRays.
Does anyone have any better ideas regarding how to approach this problem? Would it be possible to use a Shader/ Compute Shader and utilize the GPU more? If so, how?
Thanks in advance,