ecs适配egret

This commit is contained in:
yhh
2020-06-29 15:41:02 +08:00
parent a63d8598d8
commit a4f1ae351f
33 changed files with 647 additions and 871 deletions

View File

@@ -196,4 +196,9 @@ class Matrix2D {
return result;
}
public toEgretMatrix(): egret.Matrix{
let matrix = new egret.Matrix(this.m11, this.m12, this.m21, this.m22, this.m31, this.m32);
return matrix;
}
}

View File

@@ -0,0 +1,11 @@
class Vector3 {
public x: number;
public y: number;
public z: number;
constructor(x: number, y: number, z: number){
this.x = x;
this.y = y;
this.z = z;
}
}