3D linear matrices
Descritption
Adds 5 3x3 Matrices for 3D position and rotation control
The matrices being:
- Translation matrix
- Scaling matrix
- Rotation matrix (X-axis)
- Rotation matrix (Y-axis)
- Rotation matrix (Z-axis)
Usage
Assuming you have already imported the module, And that the module in the script is named "Matrices"
Translation matrix
local TranslationMatrix = Matrices.Translation(2,0,1) -- Args OffsetX, OffsetY, OffsetZ
Scaling Matrix
local ScalingMatrix = matrices.Scaling(1,2,3) -- Args SizeX,SizeY, SizeZ
Rotation Matrices
local RotationXMatrix = matrices.RotationX(math.rad(35)) -- Args Angle in radians
local RotationYMatriy = matrices.RotationY(math.rad(69)) -- Args Angle in radians
local RotationYMatriz = matrices.RotationZ(math.rad(12)) -- Args Angle in radians
Contact
Discord : gokselgnujd