Exemple #1
0
        public CustomMesh AddCustomMesh(Mesh mesh, Vector3 dir, float maxFps)
        {
            VertexSegment segment = GetVertices(mesh.vertices.Length, mesh.triangles.Length);
            CustomMesh    cmesh   = new CustomMesh(segment, mesh, dir, maxFps);

            return(cmesh);
        }
Exemple #2
0
 public CustomMesh AddCustomMesh(Mesh mesh,Vector3 dir, float maxFps)
 {
     VertexSegment segment = GetVertices(mesh.vertices.Length, mesh.triangles.Length);
     CustomMesh cmesh = new CustomMesh(segment,mesh,dir,maxFps);
     return cmesh;
 }
Exemple #3
0
 //custom mesh
 public void SetType(Mesh mesh, Vector3 dir, float maxFps)
 {
     Type    = 4;
     CusMesh = Owner.GetVertexPool().AddCustomMesh(mesh, dir, maxFps, this);
 }
Exemple #4
0
 //custom mesh
 public void SetType(Mesh mesh, Vector3 dir, float maxFps)
 {
     Type = 4;
     CusMesh = Owner.GetVertexPool().AddCustomMesh(mesh,dir,maxFps,this);
 }