OnCollisionEnter() not working in Unity3D
I have an object with a mesh collider and a prefab with sphere collider. I want the instance of the prefab to be destroyed if the two collide. I wrote the following in a script: But it is not working. I have tried toggling isTrigger on both the objects.