Show message when gameobject hits other gameobject..

Hi,

Please look at the picture below.

You see a ball, a cube, and a stick. The stick is a child of an empty gameobject. This empty gameobject is in the middle of the ball. With the left/right arrow keys you can rotate the stick around the ball (actually you’re rotating the empty gameobject).

The only thing I want to accomplish is to get a message when the stick hits the box.

I thought this would be very simple, but I can’t get it to work and don’t understand what I am doing wrong. Both the stick and the box have box colliders, but the cube is also set as “is trigger”. So I thought it would work with this script:

function OnTriggerStay(other: Collider){
	Debug.Log("stick hits cube");
}

Thank you that worked!