vec_for_normal (VECTOR* vector, ENTITY* entity, var number);
Like vec_for_vertex, but returns the vertex normal of the given model vertex in world coordinates. Normally, the vertex normal is the average of the normals of the surrounding triangles.
Parameters:
vector |
Vector set to the normal of the vertex |
entity |
Pointer of the model entity |
number |
Number of Vertex |
Modifies:
vector - vector set to the vertex normal.
Speed:
Medium
Example:
VECTOR n;
vec_for_normal(n,my,50);
See also:
vec_for_vertex, vec_for_min, vec_for_max, ent_getvertex
► latest version online