[Not Solved] 2D Collision

Hi,

So the last day or two I’ve been tinkering around with 2D. Always did 3D so this is difficult for me.

I want to make a simple game where collisions are kind of important. I’ll just show you.

In the game, the blue sprite (just 1 image with transparant middle, I did add a polygon collider btw) moves up and down during the game. I used an animation for this.

How do I check if the white dot is behind the blue sprite?

I tried OnColissionEnter but it didn’t work :confused:

check if the center of the white dot is overlapping your collider with this:

If you want to check if the whole dot is overlapping, add and subtrack the dot’s half-width from its center point and check both those points for overlap.