Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. 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

Question Any way to access the Convex mesh from a mesh collider?

Discussion in 'Physics' started by Marc-Saubion, Feb 25, 2024.

  1. Marc-Saubion

    Marc-Saubion

    Joined:
    Jul 6, 2011
    Posts:
    655
    Hi.

    I'm using a feature that reads a mesh data using read/write. I'd like to use the data from the mesh collider since it would do the same.

    Any ways I can access it?

    Thanks.
     
  2. yant

    yant

    Unity Technologies

    Joined:
    Jul 24, 2013
    Posts:
    597
    Hey.

    I hope that we'd be able to expose that eventually, but right now there's no way to access the cooked convex mesh really. One could probably emulate that by using a third-party Quickhull implementation, since PhysX uses Quickhull internally. Also, it doesn't triangulate faces, all the faces are just convex polygons by default.

    Anthony
     
    Marc-Saubion and Edy like this.