how to realize Collision judgment

how to realize Collision judgment,for example:i am making a game like fruit naja ,how to judge the knife had cut the fruit?

it is a gratitude to show a example of JS

i am waitting online ,

thanks gold……

You can use the OnCollisionEnter function on a script on the knife. The way the function goes is once another collider collides with that object, it does something. What that is is up to you.