Parent GameObject

I have a BoxCollider which is a trigger attached to a GameObject and this GameObject is a child of another GameObject. When the collider is triggered I need to calculate the relative position of the child object to the parent object. I therefore need to access the transform component of both, the child object and the parent object. I want to implement this in the OnTriggerEnter function. This function is part of a script that I have attached to the child object - the trigger.

Does anyone know how I can access the reference or transform component of the parent GameObject from the child GameObject?

transform.parent.

–Eric

Eric5h5, thanks again for such a prompt reply!