Question by
thestublue · Mar 16, 2020 at 11:35 AM ·
unity 2dcomponentapiedge detection
How do you access the edge collder2d's points size
im trying to set collision for a line thats being created by the mouse,
Vector2[] colliderpoints;
colliderpoints = edgeCollider2D.points;
colliderpoints[lineCol] = new Vector2(ray.origin.x, ray.origin.y);
**//edgeCollider2D.pointCount = 10;**
edgeCollider2D.points = colliderpoints;
But i can't find a way to set the amount of points for the edge collider
screenshot-5.png
(12.9 kB)
Comment