

IDK what I'm doing. On collision is not working does the mouth have to have ridged body? Or should I use ontrigger.


IDK what I'm doing. On collision is not working does the mouth have to have ridged body? Or should I use ontrigger.
On
I think the reason behind it is: that you are not using a 2D collider on both of the objects. please have a look at it, To implement it accurately. https://docs.unity3d.com/ScriptReference/Collider2D.OnCollisionEnter2D.html
On
In order for those events to be triggered you need to make sure of two things:
OnCollisionEnter2D This can be used to detect collision between two colliders that are not set as Trigger and at least one of them has a Rigidbody attached to it.
Syntax
OnTriggerEnter2D OnTiggerEnter2D is used to detect collision between 2D colliders that are set as a trigger. You need to use this, even if one of the Collider is set as Trigger and at least one of them needs to be a Rigidbody.
Syntax
Read this more details: basics of Unity collision