- Home /
collider vertices too close?
unity tells me: The collider did not create a collision shape as it failed verification. This could be because it was deemed too small or its vertices were too close. Vertices can also become close under certain rotations.
is there way how to disable polygoncollider2d to not accept all vertices?
somebody gave me link in comments but some "editor" deleted it ... so i am putting it back http://forum.unity3d.com/threads/change-physics2d-scale.268776/ there's nothing important in it but the physics scale discussion ... it might help to somebody (thanks to the original author)
Answer by _MR_BLue · Sep 28, 2016 at 03:36 PM
//make a new array for your vertices Vector2[] points = new Vector2[10];
//set them points[0] = ...... points[1] = ...... points[2] = ...... points[3] = ...... points[4] = ...... points[5] = ...... points[6] = ...... etc....
gameObject.getComponent().points = points
Your answer
![](https://koobas.hobune.stream/wayback/20220613175918im_/https://answers.unity.com/themes/thub/images/avi.jpg)