Warning: file_put_contents(/ff_8fd1a4ed5cc87d75a83729df7b2e0130eaa351a9d6e4051f.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
vectorCrossProduct - OFPEC Scripting Command Reference | OFPEC The Editing Center

vector1 vectorCrossProduct vector2

Operand types

vector1: Array
vector2: Array

Type of returned value


Cross product of two 3D vectors.

In layman's terms, if you have a polygon (surface) defined by 3 points, you can find a normal to it (just like terrain surfaceNormal). To invert direction of the normal, swap arguments around.

(image from BIS wiki)

Used In



_vector = [1,1,1] vectorCrossProduct [2,2,2];