Colliders with trigger option

It would be nice if there was an option to set the collider as trigger. So when the rigidbody hits the trigger, it causes an event, but physics does not act as an obstacle.
For example, a ball goes into a basketball hoop, then the user scores a point.