Hi David,
Welcome to our community, and thank you for your question!
The difference between OnCollisionEnter2D and OnTriggerEnter2D is simple: They are two different methods, hence the different names. Furthermore, they are Unity methods. This means that there is already functionality behind these methods. We did not write that functionality ourselves.
In our game, a trigger collider is a collider which has got “Is Trigger” enabled in the component in the Inspector. OnCollisionEnter2D gets invoked automatically if one of the colliders in a collision event is a non-trigger collider. OnTriggerEnter2D gets invoked automatically if one of the colliders in a collision event is a trigger collider. The “Enter” indicates that the event gets triggered if two colliders “enter” one another. For further information, please refer to the manual.
Did this help?
See also: