Search Unity

Order reliability of trigger collisions?

Discussion in 'Scripting' started by cjddmut, Sep 29, 2014.

  1. cjddmut

    cjddmut

    Joined:
    Nov 19, 2012
    Posts:
    179
    I have a rigidbody with a trigger collider that has continuous collision detection and is moving through space. If in one physics tick it moves through two other triggers, can I rely on the order with the OnTriggerEnter functions?

    Similarly say that I am already in one of the triggers on the start of a new physics tick and it collides with a new trigger without leaving the first trigger. What order, if any, can I rely on with the new OnTriggerEnter and the expected OnTriggerStay?

    Let me know if I wasn't clear enough with my question!
    C.J.