alternative to OnControllerColliderHit to work on any object

Hi,
I am trying to create a stick which deletes objects when it touches them. I found a tutorial which described how to delete objects with OnControllerColliderHit . So far the important code passage looks like this:

function OnControllerColliderHit(hit:ControllerColliderHit)

{

if (hit.gameObject.tag == “Pickup”)

{

// call the Collected(…) function of the PickupController Component (script) and pass the pickup we hit as the parameter for the function

pickupController.Collected(hit.gameObject);

}

}

How can I change this to work on/with any object, not just the character controller? I tried to use OnCollisionEnter but then I didn’t know how to define “hit”.
I’m sorry if this is a very basic question, it’s just that I don’t know much of the terminology used in Unity so I can’t really use google to find what I’m looking for. Again, sorry about this

PS: Is there maybe an example file somewhere?
And if I wasn’t able to describe my problem, simply said I want the animated cube (in the attachment) to trigger an event each time it hits an object.
PPS: How do I upload scenes? :smile:

In OnCollisionEnter(), the variable type is Collision. From there, it should be pretty easy. Just put a collider on anything you want to be destroyable.