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. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

children rigidbodies and triggers ignored

Discussion in '2020.1 Beta' started by creat327, Oct 14, 2019.

Thread Status:
Not open for further replies.
  1. creat327


    Mar 19, 2009

    If you have 2 rigidbodies with triggers one is completely ignored and giving all kind of weird results.

    Create sample scene:

    Add Rigidbody with script attached that detects "ontrigger" enter or collisions. Add a boxcollider to it and set is as trigger.

    Add Rigidbody, attach another script that detects ontrigger. Add boxcollider and set it as trigger.

    Now place GameObject2 as a child of GameObject1 and set them distant from each other so they don't overlap.

    Now create whatever other gameobject with a box collider and set as trigger. Let's name this gameobject "Wall".

    Test it:

    Now collide GameObject2 with the wall. I would expect a print out on trigger enter from the script attached to gameobject2.

    What happens since 2020.1 alpha: You will only get GameObject1 detecting the impact. GameObject2 script doesn't print jack. And randomly, when it does, it says it collided with itself instead of whatever you collided with.
    Last edited: Oct 14, 2019
  2. LeonhardP


    Unity Technologies

    Jul 4, 2016
Thread Status:
Not open for further replies.