How to check if ball go through basket?

Hi, I’m making 2D basketball game and I stuck at the problem. How can I check if the ball go through the basket?

Probably not the best solution but the first one that comes to my mind:
Add a collider at the top of the basket and one at the bottom.
The ball has to first trigger the top one and then (within a certain timeframe) trigger the bottom one.

One trigger should be enough.
You check the direction of body velocity during on enter and on exit.
This will let you determine if ball not entered from the bottom.

1 Like

thanks(⌐■_■)