예제 #1
0
        internal WallBlock(string name, string namedId, string texture, string postModel, string extensionModel,
                           string extensionStraight) :
            base(
                name,
                namedId,
                texture,
                postModel,
                extensionModel,
                new BoundingBox(new Vector3(x: 0.5f, y: 0.5f, z: 0.5f), new Vector3(x: 0.25f, y: 0.5f, z: 0.25f)))
        {
            BlockModel straightZModel = BlockModel.Load(extensionStraight);

            straightZModel.OverwriteTexture(texture);

            BlockModel straightXModel = straightZModel.Copy();

            straightXModel.RotateY(rotations: 1, rotateTopAndBottomTexture: false);

            straightX = straightXModel.GetMesh();
            straightZ = straightZModel.GetMesh();
        }