How does Unity know I'm talking about the player's head and not the snowboard?

I got the code to work but I’m confused about how it knows I’m referring to the circle collider, and how could I explicitly tell it to only print something when the head hits the ground?

5 Likes

ToonLunk,

I believe it is because we set the circle collider to be a trigger, and so it is the only part of our player that is checked against the “OnTriggerEnter2D” method.

8 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms