Basketball Hoop

Still searching for the answer on google. thanks in advance for any help

Trying to detect when a basket has gone through the hoop. Was trying collisions by placing a cube inside the net problem is that the cube needs collider and thereore is blocking the basketball from passing through.

How would I go about making an “invisible” detector for this game?

Make the collider isTrigger = true and use OnTriggerEnter.

Ok on the “sensor cube” which I placed inside the net I gave it the script

function OnTriggerEnter(collision : Collider)
{

    print("basketball hit me");

}

This workd thank you!!!. So what is the “istrigger” doing so I can understand better. It seems to allow the basketballd to pass through