- Home /
Polygon Collider 2D Not Precise Enough
Hello, in my game I have a Sprite that is created with a script at runtime. During gameplay the texture of the sprite changes and so the shape of the sprite changes as well. When these changes occur, I update the PolygonCollider2D which is attached to the gameobject and it works accurately most of the time. I have discovered an issue with this concave curve though and I am not sure how to approach it. I would appreciate any help in solving this. Realistically I just need the PolygonCollider2D to be more accurate / generate more vertices so that it better fits the shape of the sprite. I am not asking for 100% perfect accuracy but this particular instance is very game breaking in my particular case! Thank you!
screenshot-from-2022-04-18-22-11-23.png
(10.6 kB)
Comment