vec_for_normal (VECTOR* vector, ENTITY* entity, var number);
Like vec_for_vertex, but returns the
vertex normal of the given model or terrain vertex. 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 Entity |
| number |
Number of Vertex |
Modifies:
vector - vector becomes the Normal of the vertexSpeed:
Medium
Remarks:
Mesh manipulation functions are not available for map entities, sprites, or chunked
terrain.
Example:
vec_for_normal (temp, my, 50);
See also:
ent_vertices, vec_for_vertex,
vec_for_mesh, vec_to_mesh,
vec_for_min, vec_for_max