Unity C# - Collision detection and destroying objects
Channel:
Subscribers:
33,700
Published on ● Video Link: https://www.youtube.com/watch?v=-SNVjj6wjlU
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.
Other Videos By Design and Deploy
Tags:
C# (Programming Language)
Unity (Software)