Warning: file_put_contents(/ff_1a08f7290967116cea5e6d205e31c62a39f1fa62f57e711f.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

Description

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

Arma3

Example

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

Advertisement