Example #1
0
 public static void setWorld(this Transform transform, UMatrix matrix)
 {
     transform.localScale = matrix.getScale();
     transform.rotation   = matrix.getRotation();
     transform.position   = matrix.getPosition();
 }
Example #2
0
 public UMatrix(UMatrix source)
 {
     this.m = source.m;
 }
Example #3
0
 public void set3x3(UMatrix pm)
 {
     m.m00 = pm.m00; m.m01 = pm.m01; m.m02 = pm.m02;
     m.m10 = pm.m10; m.m11 = pm.m11; m.m12 = pm.m12;
     m.m20 = pm.m20; m.m21 = pm.m21; m.m22 = pm.m22;
 }
Example #4
0
 public static void set(this Transform transform, UMatrix matrix)
 {
     setWorld(transform, matrix);
 }
Example #5
0
 public void preApplay(UMatrix left)
 {
     set(left.m * m);
 }
Example #6
0
 public void applay(UMatrix source)
 {
     m *= source.m;
 }
Example #7
0
 public void set(UMatrix source)
 {
     m = source.m;
 }