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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Using Non convex mesh colliders with non Kinematic RigidBody

Discussion in 'Physics' started by unity_g6JWuk2cQm0Ksw, Aug 7, 2018.

  1. unity_g6JWuk2cQm0Ksw

    unity_g6JWuk2cQm0Ksw

    Joined:
    Aug 3, 2018
    Posts:
    3
    Hello,

    Is there a way we can use Non convex mesh colliders with non Kinematic RigidBody?, i keep getting the error saying that i can't with unity 5+.. It's really annoying especially when we import new models with no colliders on them..
    Thanx
     
  2. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,364
    As the error says, that's not supported in Unity anymore. This is due to changes in the underlying physics engine (nVidia PhysX). Non-kinematic rigidbodies must have convex mesh colliders. The only solution is decomposing the non-convex mesh collider into a set of convex mesh colliders.
     
  3. EVOLdarkang3l1

    EVOLdarkang3l1

    Joined:
    Feb 20, 2021
    Posts:
    1
    Non-convex MeshCollider with non-kinematic Rigidbody is no longer supported since Unity 5.
    If you want to use a non-convex mesh either make the Rigidbody kinematic or remove the Rigidbody component. Scene hierarchy path "GameObject/JohnLemon/Root/Level/Corridors/Floor_DiningRoom", Mesh asset path "Library/unity default resources" Mesh name "Plane"
    im doing this for class and i do not understand what to do here can someone please help me fix this
     
  4. ScienceTeamKevin

    ScienceTeamKevin

    Joined:
    Apr 19, 2022
    Posts:
    2
    If anyone else stumbles in on this issue I found a solution, basically unity only gets mad when a non-convex object render has a mesh COLLIDER. So by disabling the collider in the inspector, it all fixes itself.

    P.S. This will only work if you have the non-convex object as a child of the object with a rigidbody.
     
  5. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,698
    that's not a solution. You are disabling the collider, obviously, if you have no collider, there is no issue.