Fix bug in CrossProduct function in boing example

Closes #1418.
This commit is contained in:
maobaoqi 2019-01-15 14:34:42 +00:00 committed by Camilla Löwy
parent 3d748cf530
commit 29d8ca4ce4

View File

@ -165,7 +165,7 @@ void CrossProduct( vertex_t a, vertex_t b, vertex_t c, vertex_t *n )
v2 = c.y - a.y;
v3 = c.z - a.z;
n->x = u2 * v3 - v2 * v3;
n->x = u2 * v3 - v2 * u3;
n->y = u3 * v1 - v3 * u1;
n->z = u1 * v2 - v1 * u2;
}