Get the Angle of a Normal

BlitzMax Forums/BlitzMax Programming/Get the Angle of a Normal

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

damn I used this in somthing for glancing collisions in somthing and I have forgot how i got it

from memory you can get the normal of the surface from a cross product of a tri's vert's

i'm on my laptop at the moment, but theres plenty of stuff to get you going for calculating stuff like that on the internet

I *think* the chase sample (on my site) might have some normal code in the vector lib extract that is included with it, so have a look!

Its not always the nightmare it might seem, look also on opengl lighting that relies on surface normals...