How to get the angle from another collider

Hi, fisrt time here. Sorry for english mistakes... I'm a french speaking person. with that said, here is what i'm trying ti do:

I laid down on a floor a series of collider objects (set as triggers) with different angle for each. I want a moving object to rotate to the same angle the collider it passes on. Sorry if it's not clear.

I can't find enough information in the documentation. I know it is about a On TriggerEnter function but I don't know th syntax to get the angle of the triggering object.

Any help!?

Thanks

in the collider's code:

function OnTriggerEnter(collider : Collider)
{
    collider.transform.rotation = transform.rotation;
}

This will set whatever hits the trigger to the same rotation as the trigger

Here's a script for the collider:

function OnTriggerEnter (other : Collider) {
    other.transform.rotation = transform.rotation;
}

You will want to put this on your triggers.