- Home /
Collision with mesh updated at runtime
I have a mesh that I update during runtime with mesh.SetVertices()
. The Problem is that the player does not collide with the "new features" of the mesh, only the old mesh.
Comment
Did you try changing the Broadphase type from Physics settings?
Also, the doc says
If prior to setting shared$$anonymous$$esh any of the vertices, indices or triangles of the mesh have been changed then the shapes of the $$anonymous$$eshCollider will be rebuilt.
So maybe reassigning the meshcollider mesh property will do.