I need to get the number of vertices a mesh collider's mesh has. As pointed out in the comments this may not even be a mesh anymore, I'mbut is there a way to count the vertices of whatever data structure a MeshCollider uses to store it's 'mesh'?
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 meshwhat actually used by the object, asphysics simulation. As cooking -> cook for faster simulation canseems to drastically alter this mesh.
Is there a way to get the actual cooked mesh? I only need to read it, not alter it.