dynamically changing mesh on physics body

I was working on a lens where physics bodies spawn at a interval. I change the mesh and the material of the spawned object. For collision I have set the shape type as mesh on the physics body. I need to change that mesh through script at runtime. How can I do that ?