# How to get “this” object collider name when OnTriggerEnter is fired?

I have a "car" object with 2 colliders attached, a base and a top collider. Then I have a script attached to my car. I'm using OnTriggerEnter event to detect collisions with an invisible "Checkpoint". The problem is that OnTriggerEnter is called twice, I suppose because it is called either from the base collider and top collider. I want to check my object collider's name. OnTriggerEnter expose me with "other" collider; however, how can I test my collider's name?

• I have been searching for the answer to this exact question. This should be extremely basic functionality of the OnTrigger event... – Shadoninja Dec 30 '17 at 17:46

Debug.Log("Collided With: " + collider.gameObject.tag);