Adding to the physics in unity topic we have two methods we can call that effect our game objects. In my previous example i used OnTriggerEnter
Which activated the destroy game object instruction. this works because both objects have colliders components attached.
in the unity documentation is it explained like:
…