I’ve just started learning unity and am trying to implement a simple 2D platformer for some practice.
And here’s 2 questions:
- How to set edge collider 2D precisely? I attached a edge collider 2D to the ground, and the character has a box collider2D component, but I can’t find a way to set the vertices’ position of edge collider precisely, so the character always seems to be floating several pixels above the ground, which bugs me a lot because that becomes way more serious when the target platform’s resolution is quite high - it looks like that the character floats “half pixel” or “quarter pixel” above the ground.
- How do I implement a platform that when the character jumps he can go through it but when he falls he lands on it, with unity’s 2d physics?
Thank you for the reading.
