I tried modify C# code and found another way to implement head collision detection using OnCollisionEnter2D(), and It worked.
I’m not sure if it’s a conventional method to locate the collider that has collided on the current game object.
Privacy & Terms