GMU:Tutorials/Performance Platform/Using the tracking system: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
 
Line 42: Line 42:
  <source lang="csharp">
  <source lang="csharp">
Matrix4x4 rot = new Matrix4x4();   
Matrix4x4 rot = new Matrix4x4();   
rot.SetTRS(new Vector3(0,0,0),q,new Vector3(1,1,1));  //It’s the same “q” that mentioned above
rot.SetTRS(new Vector3(0,0,0),q,new Vector3(1,1,1));  //It’s the same “q” that used above
Vector4 vy = rot.GetColumn(1);   
Vector4 vy = rot.GetColumn(1);   
Vector4 vz = rot.GetColumn(2);   
Vector4 vz = rot.GetColumn(2);