Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How do I use a non-kinematic rigibody object with a non-convex mesh collider?

Discussion in 'Physics' started by cashman91431, Oct 2, 2023.

  1. cashman91431

    cashman91431

    Joined:
    Aug 21, 2022
    Posts:
    16
    I am working on a realistic space game and I need hyper-realistic physics. I understand what the error 'Non-convex MeshCollider with non-kinematic Rigidbody is no longer supported since Unity 5' means, but I can't give up neither. Convex collider makes my complex spaceship collider into an oversized triangle, making the physics behave wierd. I also need a rigibody not to be kinematic, as I need the ship to collide properly. Is there any other solution other than:

    A) Recoding the physics engine
    B) Creating a custom collider with primitive collider shapes

    ?
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,129
  3. cashman91431

    cashman91431

    Joined:
    Aug 21, 2022
    Posts:
    16
    I did install the plugin using the provided tutorial, but I can't figure out it's usage. I have discovered a VHACD script component, but it does not appear to make the collider. Turning the Mesh Collider does not help. Is there a step or a component I am missing?

    Edit: I searched some forums, where everyone was confused on how to do it. I even tried cloning it and installing it as a local version but nothing
     
    Last edited: Oct 2, 2023
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,129
    No idea, I've never personally used it.
     
  5. cashman91431

    cashman91431

    Joined:
    Aug 21, 2022
    Posts:
    16
    After extensive research I came to a conclusion that the project was/is anabandoned and is no longer supported and working in the newest versions of Unity (I am using 2022.8f1). Is there any other option for me?
     
  6. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,129
    Search for Convex Decomposition libraries either free or on the Asset Store.
     
  7. cashman91431

    cashman91431

    Joined:
    Aug 21, 2022
    Posts:
    16
    Thanks! I found a V-HACD fork by rorygames working with my version of unity. Thank you so much for the support!
     
    MelvMay likes this.