Upset Baby Games

Upset Baby Games

Navigation

vector4

Syntax:

vector4(value);
Argument name Type Description
value any value to convert into a vector3

Returns: (vector4)

Description:

This function can be used to turn a value into a 4D vector. Scalars will fill up the x-column and any remaining units will be set to 0. Arrays will be converted, if possible.

Note: A vector4 is simply a 1D array with 4 real values.