Matrix
Noir.Libraries.Matrix: NoirLibrary
A library containing helper methods relating to Stormworks matrices.
Offsets the position of a matrix.
Parameters
pos
: SWMatrixxOffset
: integer|nilyOffset
: integer|nilzOffset
: integer|nil
Returns
SWMatrix
Returns an empty matrix. Equivalent to matrix.translation(0, 0, 0)
Returns
SWMatrix
Returns a scaled matrix. Multiply this with another matrix to scale up said matrix.
This can be used to enlarge vehicles spawned via server.spawnAddonComponent, server.spawnAddonVehicle, etc.
Parameters
scaleX
: numberscaleY
: numberscaleZ
: number
Returns
SWMatrix
Offset a matrix by a random amount.
Parameters
pos
: SWMatrixxRange
: numberyRange
: numberzRange
: number
Returns
SWMatrix
Converts a matrix to a readable format.
Parameters
pos
: SWMatrix
Returns
string
Last updated