Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Idle gameobjects within spawned trigger wont set trigger off

$
0
0
I have a trigger that is always inactive until certain moments in gameeplay. During these moments it will be enabled. When it's enabled it sets it's position to the player and then makes a list of all game objects with "enemy" tags within it's boundary. My problem is if an enemy is idle OnTriggerEnter and OnTriggerStay won't detect the non moving enemy. If the enemy moves it will detect it without a problem though. I need them to be detected either way. Does anyone know of a solution? - Thanks

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>