Пример #1
0
        private void AddNode(Block block)
        {
            Node newNode = new Node
            {
                Position = new Vector3(0, 0, 0),
                Size     = new Vector3(Size.x, Size.y, Size.z)
            };

            newNode.Insert(block);
            Nodes.Add(newNode);

            Container newContainer = new Container();

            newContainer.Size = Size;
            newContainer.AddBlock(block);
            Containers.Add(newContainer);
        }