How to use OnCollisionEnter() to judge whether collider hits?

Hi everybody, Im have a problem in my car game: I have a car with a rigidbody and multiple Colliders(two box colliders and 4 wheel colliders) in child GameObjects. Now, I want to use OnCollisionEnter()(in my parent GameObject) to judge whether it hit other. I just want to find whether the box colliders hit other but not wheel colliders, How can I do this?[46003-qq截图20150508091659.png|46003]

You can check the name of the object or objects that collided.

This Unity tutorial explains how to do this…