Esempio n. 1
0
        bool PerformWrinkleVoxels(MyVoxelMap voxelMap, MyMwcVector3Int voxelCoord, ref bool changed)
        {
            bool contentChanged = false;
            byte originalContent = voxelMap.GetVoxelContent(ref voxelCoord);

            voxelMap.WrinkleVoxelContent(voxelCoord, MyVoxelConstants.DEFAULT_WRINKLE_WEIGHT_ADD, MyVoxelConstants.DEFAULT_WRINKLE_WEIGHT_REMOVE);
            byte newContent = voxelMap.GetVoxelContent(ref voxelCoord);
            if (originalContent != newContent)
            {
                contentChanged = true;
                changed = true;
            }

            return contentChanged;
        }