Example #1
0
        public MeshChunk(Vector3F position, int width, int height, int depth, Material material)
        {
            _position = position;
            _width = width;
            _height = height;
            _depth = depth;
            _disposed = false;

            InitializeGameObject(material);
        }
Example #2
0
 public IChunk CreateChunk(Vector3F position, int width, int height, int depth)
 {
     return new MeshChunk(position, width, height, depth, _material);
 }
Example #3
0
 private Vector3[] Map(Vector3F[] from)
 {
     var to = new Vector3[from.Length];
     for (var i = 0; i < from.Length; ++i)
     {
         to[i] = new Vector3(from[i].x, from[i].y, from[i].z);
     }
     return to;
 }