17.05.2015, 05:07
pawn Код:
stock SurfaceNormals(Float:P1[3], Float:P2[3], Float:P3[3], &Float:normX, &Float:normY, &Float:normZ, &Float:vectX, &Float:vectY, &Float:vectZ)
{
normX = (P2[0] − P1[0]) * (P3[0] - P1[0]);
normY = (P2[1] − P1[1]) * (P3[1] - P1[1]);
normZ = (P2[2] − P1[2]) * (P3[2] - P1[2]);