Trigger Problem (answered)

Hi,

I have this trigger attached to a cube and the rigidbody is also attached to it. When an object entered into collider, it will call ontriggerenter(). right?
The problem is that what if there are two objects entered into trigger, how can it detect two objects because in the script OnTriggerEnter(Collider other), it can only detect one collider. Any help?? Thank you.

:slight_smile: The OnTriggerEnter(…) function will be called multiple times, once for each object it hits or that hits it in a single frame. Computers can only do one thing at a time, and the physics system updates objects one at a time. (Only partly true, but it is true enough for your question).