Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Warning : "TerrainColliders can no longer act as triggers since Unity 5.0"

Discussion in 'Editor & General Support' started by ExSoax, Nov 27, 2014.

  1. ExSoax

    ExSoax

    Joined:
    Nov 27, 2014
    Posts:
    11
    Hi all,
    I'm getting this warning (
    "TerrainColliders can no longer act as triggers since Unity 5.0"
    ) in my project ( using Unity 5 beta 14 ) when a WheelCollider collides with the terrain... This warning is getting a big percentual of my CPU computation and it's slowing down my game's instance. Can someone help me?

    Thanks.
     
    Last edited: Nov 28, 2014
  2. ExSoax

    ExSoax

    Joined:
    Nov 27, 2014
    Posts:
    11
  3. ExSoax

    ExSoax

    Joined:
    Nov 27, 2014
    Posts:
    11
  4. Gokcan

    Gokcan

    Joined:
    Aug 15, 2013
    Posts:
    289
    I have the same issue. Somethings are wrong with physicx. My projects made with 4.x doesnt work with 5.0.
     
  5. Martian-Games

    Martian-Games

    Joined:
    Jan 19, 2012
    Posts:
    44
    I have the same issue.
     
  6. ramsicle

    ramsicle

    Joined:
    Sep 16, 2013
    Posts:
    6
    I got this warning as well, as temp fix I added a tag to terrain then added if statement so the block of code that causes the warning "if (!hit.collider.isTrigger)" wont compile if collider is terrain collider.
     
  7. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    You should post this in the correct section:
    http://forum.unity3d.com/forums/unity-5-pre-order-beta.72/

    It would be useful to get the information whether the terrain collider has isTrigger enabled and whether you are able to disable it at all. If it is not possible to disable it, it is clearly a bug and should be reported.
     
  8. SteenLund

    SteenLund

    Unity Technologies

    Joined:
    Jan 20, 2011
    Posts:
    639
    We will be removing the warning caused by IsTrigger called on a TerrainCollider. In the future it will only warn if you try to set the property IsTrigger property on a TerrainCollider