- Home /
How can I calculate the normals of the edges of a 2D plane?
I want to achieve the following effect for any subdivided 2D plane (image below). How do you do it with only X and Y axis and when its flat plane?
Comment
Vector3 vertexNormal = Vector3.Normalize( vertexPosition - gridCenter );
Your answer
![](https://koobas.hobune.stream/wayback/20220613042230im_/https://answers.unity.com/themes/thub/images/avi.jpg)