Esempio n. 1
0
        public PhysicalData(PhysicalData data)
            : base(data)
        {
            volume = new DynamicDouble(data.volume);

            materials = new MaterialReference[data.materials.Length];
            for (int i = 0; i < materials.Length; i++)
            {
                materials[i] = new MaterialReference(data.materials[i]);
            }
        }
 public MaterialReference(MaterialReference mat)
 {
     material = new DataReference(mat.material.value);
     parts    = mat.parts;
 }