I’m not sure if this is is fitting for “2D” or “psygics”. I hope it’s okay.
Hello reader,
I’m pretty new to Unity and I’m making a simple 2D shooter, though I’ve a big issue with the collider.
At first, It seems to either slip away over the ground of becoming stuck on the wall.
I use Materials to solve this issue a bit, Using two different-sized 2D circle colliders,
one supposed to slip from the wall, and one to keep friction on the ground.
<Circle below is to not slip from the ground, the one above is to slip from walls, I made it bigger so the circle with friction wouldn’t touch the walls.
“Good friction” has a friction of 1.
“Slippery” has no values.
Yet, I’m now only having a problem with the edges of a block, because that will be seen by the circle with friction.
Maybe I’m thinking too hard about it, it sounds like it shouldn’t be hard to be fixed, but yet, I don’t know how it should be. I was thinking about the sides of a box collider to have a different material, if that was possible.
I thank you for reading this, and I would greatly like it if you’ll reply with a possible answer