Vector direction q?

Blitz3D Forums/Blitz3D Programming/Vector direction q?

Paolo(Posted 2004) [#1]
Ok, I think this may be a maths equation or something similar to the dot product...

How do I know if a vertex normal (vertexnx(),ny(),nz()) is facing to a certain point in the 3d world?

thanks!
Paolo.


jhocking(Posted 2004) [#2]
You would find the vector from the vertex to the target point, and then compare this vector with the normal. In doing the comparison you'll probably be normalizing both vectors to unit vectors and seeing if the normalized vectors are the same.

I'm not too up on my 3D math so I can't give you specific formulas, but this is the approach.


IPete2(Posted 2004) [#3]
Check out www.nuclearglory.com

Under Tools - Tutorials.

There are some great maths explanations there.

IPete2.


Paolo(Posted 2004) [#4]
Thanks :)
will give a try to both!

Paolo.