I have an issue where the GetColumn and GetRow and even printing the matrix itself doesn’t return the data that’s in it’s float array.
The float array is this:
0.9999999,0,0,4.00131E-07,0,0.9999999,0,0,0,0,0.9999999,0,0,0,0,1
And the matrix/getcolumn/getrow all display data from this data set:
1.00000 0.00000 0.00000 0.00000
0.00000 1.00000 0.00000 0.00000
0.00000 0.00000 1.00000 0.00000
0.00000 0.00000 0.00000 1.00000
Here’s my code:
string f = "";
Matrix4x4 m4 = new Matrix4x4();
for (int i = 0; i < 16; i++){
m4 <em>= bindShapeMatrix_; //bindShapeMatrix *is a float*_</em>
f += “,” + m4*;*
}
Debug.Log(“m4:” + m4);//this returns data I didn’t put in the matrix
Debug.Log(“m4c:” + m4.GetColumn(0));//this returns data I didn’t put in the matrix
Debug.Log(“m4r:” + m4.GetRow(0)); //this returns data I didn’t put in the matrix
Debug.Log(“floats:” + f); //This is what I should have stored in the matrix
Any idea’s what I’m missing out on?