GenerateRotationMatrix

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(rotationMat:array) GenerateRotationMatrix axis:axis angle:float 
(rotationMat:array) RotMat axis:axis angle:float

Returns a 3×3 square matrix that can serve as a rotation matrix about the specified axis. Rotation matrices are always invertible, and their inverse is equal to their transpose.