Platform Effector 2D won't let me collide with player.

Hi guys,
Recently I started to create a platform game in 2D and I used Polygon Collider 2D for collisions, and the player’s behavior was excellent, but with an issue: it gets stuck on walls.

Then my solution was to add a Platform Effector 2D and then everything was excellent.
But then I started to modify a lot of stuff and then suddenly, my player doesn’t want to collide with the ground, it just falls down all the way. I don’t know why!

If I un-tick the Platform Effector 2D, it works perfectly (well, kinda… I still have the get-stuck on walls issue), but for some reason, Platform Effect 2D is causing my player to ignore the ground.

Is there a property that I’m missing here? Maybe I moved something that I shouldn’t?

Thanks!

PS.: My Platform Effector 2D properties are:
Instance ID: I guess it doesn’t matter
Local Identifier In File: I guess it doesn’t matter
Use Collider Mask: True
Collider Mask: Everything
Rotational Offset= 0
Use one way: false <— I tried all the possible combinations with these.
Use one way grouping: false <— I tried all the possible combinations with these.
Surface Arc: 180
Use Side Friction: False
Use Side Bouce: False
Side Arc: 1

The platform effector recognizes collisions from one angle while ignoring the rest, is it possible that you have got the angle wrong?

Another tip is to not use the platform effector this way, the “stuck in walls” problem could be solved in a number of ways, the most straight forward thing to do might be to make the walls material slippety, this makes the friction very low. This is something you usually only want on the vertical sides of an object. Another option is to use a Physics2D.OverlapCircle and make the player stop moving on contact withthe “Wall” layer.

Hope it helps

1 Like