public MeshChunk(Vector3F position, int width, int height, int depth, Material material) { _position = position; _width = width; _height = height; _depth = depth; _disposed = false; InitializeGameObject(material); }
public IChunk CreateChunk(Vector3F position, int width, int height, int depth) { return new MeshChunk(position, width, height, depth, _material); }
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; }