Hello, I request your help again. I need to detect and check the number of active entities inside a trigger box. My issue is that I cannot seem to see function to return all the overlapping entities. My first tackle on the problem was to count the entities on trigger enter and trigger leave but this creates another issue: sometimes the entities get destroyed and there is no way to tell from which trigger box they get destroyed (multiplayer game using socket.io)
My second tackle was to use raycasts but from my understanding, pc.RaycastResult returns only one entity rather than an array.
Can anybody point me in the right direction? How can I detect accurately the number of entities from inside a trigger volume?
Thank you very much!