Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    Hi

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

    Create sample scene:

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

    GameObject2:
    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

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
Thread Status:
Not open for further replies.