Using the simple but smart PolygonColliderSimplification component, you can easily simplify your Polygon Collider 2D and Edge Collider 2D to have less points, which leads to more accurate collision detection and possibly better performance.
It helped me fix "getting stuck" issues where my player's Box Collider 2D got stuck in areas which didn't seem logical to get stuck at.
I found the script on j-bbr on Github, download it here:
[ Ссылка ]
Follow @bluegoogames on Twitter for more tutorials, devlogs and gameplay from our upcoming game Space Chef.
Twitter: [ Ссылка ]
Ещё видео!