Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

What in the world is a "Surface Normal"?

Asked by 6 years ago

I've been looking at the FindPartOnRay function for a Ray Cast and when going over it I noticed that is mentioned that it returned something called a Surface Normal. I've looked around and I've seen it referenced in other questions on other sites but I haven't found an actual explanation of what it is and what can be done with it.

0
In this picture, the magenta arrows are what represent the surface normals of the blue surfaces: http://mathforum.org/mathimages/imgUpload/thumb/Surfacenormalart.png/400px-Surfacenormalart.png WillieTehWierdo200 966 — 6y

2 answers

Log in to vote
1
Answered by
cabbler 1942 Moderation Voter
6 years ago

Fancy word for look-direction of a particular part face, like lookVector. Since raycast always hits a particular face there is a particular normal.

Non-rotated part's top surface normal is (0,1,0). Of course it can actually be anything, given any rotation.

0
Thanks for the help Sarenheart00 16 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

The normal of a surface is explained here! Simple use would be to determine reflected projectiles.

Answer this question