Skip to content

Minimal project to outline matrix application in Unity.

Notifications You must be signed in to change notification settings

KoltesDigital/unity-matrix-order

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Matrix Order

Minimal project to outline matrix application in Unity.

The picture below shows two cubes with the corresponding applied matrices.

This shows that matrices are applied from right to left. The corollary is vectors are seen as columns.

Result

Note: matrix components are accessed in row-major order, i.e. with Matrix4x4[row,column] and Matrix4x4.m<row><column>. Therefore, Matrix4x4.m03 is the X-Translate component.

About

Minimal project to outline matrix application in Unity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages