Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question How to Combie Some BoxColliders

Discussion in 'Scripting' started by Zawaseinlove, Feb 23, 2023.

  1. Zawaseinlove

    Zawaseinlove

    Joined:
    Jun 25, 2022
    Posts:
    6
    I need just like photo,these BoxColliders triggerEvent can be as one,i just know if want two BoxColliders can work at same time which need to set a parent ,add Rigidbody and the isKinematic is true。
    upload_2023-2-23_11-46-56.png
     
  2. Zawaseinlove

    Zawaseinlove

    Joined:
    Jun 25, 2022
    Posts:
    6
    i konw the regular type can be easy,but i need more complicated like this
    upload_2023-2-23_11-54-22.png
     
  3. Zawaseinlove

    Zawaseinlove

    Joined:
    Jun 25, 2022
    Posts:
    6
    OK,i am a noob,just use OnTriggerStay and OnTriggerExit is OK,dont use OnTriggerEnter
     
  4. Zawaseinlove

    Zawaseinlove

    Joined:
    Jun 25, 2022
    Posts:
    6
    by the way,must add Rigidbody and the isKinematic is true in a parent of these BoxColliders
    upload_2023-2-23_15-40-22.png
    upload_2023-2-23_15-40-46.png