Unity C# - Collision detection and destroying objects

Subscribers:
33,700
Published on ● Video Link: https://www.youtube.com/watch?v=-SNVjj6wjlU



Duration: 6:48
15,294 views
0


This demonstrates how to check for collisions and destroying one of the objects involved.

Both objects must have a Rigidbody2D and at least one needs to be flagged as Trigger.

OnTriggerEnter2D routine checks for the collision. It is a routine outside of Start and Update.







Tags:
C# (Programming Language)
Unity (Software)