I made a code to destroy a projectile when it collides with a collider, but it doesn’t work on mesh colliders. Up until now, it has been fine because I haven’t imported any models that really needed mesh colliders, but im starting to import some. This is my script, what can I do to make it detect mesh collision?
var impactexplosion : ParticleEmitter;
function OnCollisionEnter(hit : Collision)
{
Destroy(gameObject);
Instantiate(impactexplosion,transform.position,transform.rotation);
}