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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Has (3D) Trigger behavior changed in 5.3?

Discussion in 'Physics' started by FunkStallion, Jan 18, 2016.

  1. FunkStallion

    FunkStallion

    Joined:
    Nov 4, 2014
    Posts:
    22
    Hi,
    I've just updated Unity to 5.3.1p3 from 5.2.3p1 and have noticed the trigger behavior seems different.
    I use spherical triggers on my characters to detect when other characters are nearby which up until now has been fine, but no longer seems to work properly.

    I've added debug log calls to OnTriggerEnter and OnTriggerExit and with 5.3 OnTriggerExit is being called multiple times immediately after OnTriggerEnter even though the triggers are still intersecting.

    I've searched for other topics on this issue but have only found people having various issues with 2D triggers in 5.3. Not sure if they are related to what I'm seeing.

    I double checked and this isn't a problem when going back to 5.2.

    Hopefully someone can shed some light on this.

    Thanks
     
  2. FunkStallion

    FunkStallion

    Joined:
    Nov 4, 2014
    Posts:
    22
  3. FunkStallion

    FunkStallion

    Joined:
    Nov 4, 2014
    Posts:
    22
    Although stopping my characters from toggling isKinematic didn't seem to make any difference to the problem.
     
  4. FunkStallion

    FunkStallion

    Joined:
    Nov 4, 2014
    Posts:
    22
    Looks like the issue is coming from toggling rigidbody.detectCollisions