OnCollisionEnter2D not being executed?

I think its because of kinematic

A kinematic Rigidbody2D will only collide with a dynamic Rigidbody2D body type. The exception to this is if Rigidbody2D.useFullKinematicContacts is set to true in which case it will collide with all other Rigidbody2D body types.

https://docs.unity3d.com/ScriptReference/RigidbodyType2D.Kinematic.html

Try setting Body Type to Dynamic and see if OnCollisionEnter executes.

OR

Add a dynamic Rigidbody2D to the other collider

Leave a Comment