Hello, I’m trying to get a direction vector3 from a triangle. I thought I could use mesh.normals but that has three entrees, none of which seem to work. I searched around but couldn’t understand any solution. Can someone help please? Thanks.
Mesh normals are only used for lighting. Assuming a vertices array with 3 entries, you can use this to get the surface normal:
var v0 = vertices[0];
var surfaceNormal = Vector3.Cross (vertices[1]-v0, vertices[2]-v0).normalized;
–Eric
Thanks. I’ll give it a go.