Quantcast
Channel: Answers for "Direction of a mesh"
Viewing all articles
Browse latest Browse all 4

Answer by Eric5h5

$
0
0
You can get the surface normal of a triangle like this: var v0 = vertices[0]; var v1 = vertices[1]; var v2 = vertices[2]; var surfaceNormal = Vector3.Cross (v1 - v0, v2 - v0).normalized; vertices[0], [1], and [2] should, of course, be replaced with the actual vertices of the triangle that you're interested in.

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>