Closed CobeyH closed 2 years ago
Trying to implement this has ended up being harder than expected. There are two options, but neither of them is optimal. The two solutions are outlines below:
OnTriggerEntered
can be used to detect the collision. However, this means that you cannot detect collisions between the individual particles and the zone. If half the particles are inside and half are outside then it will either be counted as 0 particles inside or 100% of the particles being inside depending on the position of the collider in the middle of the flock.
Describe the solution you'd like Create a variant of the time-zone that triggers when a certain number of moths are in the zones instead of based on time.