- Home /
Question by
Jabob1 · Aug 18, 2020 at 01:45 PM ·
meshmeshcollidermesh collidermesh vertices
Is there any way to get the optimized (cooked) mesh of a mesh collider?
I need to get the number of vertices a mesh collider's mesh has, I'm currently using MeshCollider.sharedMesh.vertexCount
But seems to get the mesh that the collider initially uses and has a reference to. But this is not the mesh actually used by the object, as cooking -> cook for faster simulation can drastically alter this mesh.
Is there a way to get the actual cooked mesh? I only need to read it, not alter it.
Comment