Yes, exactly. The head in Rick’s game is a trigger collider, which is not supposed to bounce off. For some unknown reason, it does bounce. We suspect that this effect might have been caused by the SurfaceEffector2D component even though it was not supposed to happen.
If you prefer a bouncing head, you could disable “Is Trigger” in the Collider2D component. In that case, you must not use OnTriggerEnter2D, though, but OnCollisionEnter2D. OnTriggerEnter2D gets called only if one of the two colliders in the current collision event is a trigger collider.
It might also make sense to keep the CrashDetector script on the head game object, so Barry’s snowboard collider will not call this method as well.
However, if you found an alternative solution that’s perfectly fine. In many cases, there are multiple ways to make something work in Unity.
Does your game work now as expected?
See also:
- Forum User Guides : How to mark a topic as solved