Vector direction q?
Blitz3D Forums/Blitz3D Programming/Vector direction q?
| ||
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. |
| ||
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. |
| ||
Check out www.nuclearglory.com Under Tools - Tutorials. There are some great maths explanations there. IPete2. |
| ||
Thanks :) will give a try to both! Paolo. |