I need to know how many objects with a certain tag are touching a particular object at any given time. Right now I’m using “OnTriggerEnter” and “OnTriggerExit” to achieve this - but its not working.
OnTriggerExit seems to be the culprit. Ive noticed through testing that OnTriggerExit is only called at the moment that NO objects are touching the trigger. This means that if one object moves out of the collision bounds of the trigger while another is still touching it, the game won’t realize that the trigger is touching one less object. This is leading to all kinds of chaos and improper functioning of my game. Is there an alternative to OnTriggerExit() that will serve my purposes?