mesh colliders problem

I have got a wall(gameObject) and a window (just hole in wall model). And I have got a nail. The wall and the nail have a rigidbody (isKinematic=true) and a collider (isTrigger=true).

I want to move my nail with script through the wall. How I can get OnTriggerEnter event (I have not got yet) ?

I can't use collider::convex equal to true for wall, because I don't want to have got OnTriggerEnter event when my nail goes through the window.

I'm not exactly sure what you were aiming for, but if i understood correctly maybe this could help?

just assign a tag to your wall (you could also do this vice versa and assign the tag to your nail.

 function OnTriggerEnter(hit : Collider){

        if(hit.gameObject.tag == "wall"){
        //then do your nail transform through the wall here     
        }
    }

alternatively you could have:

function OnTriggerEnter(hit : Collider){

            if(hit.gameObject.tag == "window"){
            //stop the nail     
            }
        }

Hope this helps