Beispiel #1
0
        // Token: 0x06000229 RID: 553 RVA: 0x00011CD0 File Offset: 0x0000FED0
        public void FromPmxSoftBody(PmxSoftBody sbody, bool nonStr)
        {
            bool flag = !nonStr;

            if (flag)
            {
                this.Name  = sbody.Name;
                this.NameE = sbody.NameE;
            }
            this.Shape     = sbody.Shape;
            this.Material  = sbody.Material;
            this.Group     = sbody.Group;
            this.PassGroup = sbody.PassGroup.Clone();
            this.IsGenerateBendingLinks = sbody.IsGenerateBendingLinks;
            this.IsGenerateClusters     = sbody.IsGenerateClusters;
            this.IsRandomizeConstraints = sbody.IsRandomizeConstraints;
            this.BendingLinkDistance    = sbody.BendingLinkDistance;
            this.ClusterCount           = sbody.ClusterCount;
            this.TotalMass      = sbody.TotalMass;
            this.Margin         = sbody.Margin;
            this.Config         = sbody.Config;
            this.MaterialConfig = sbody.MaterialConfig;
            this.BodyAnchorList = CP.CloneList <PmxSoftBody.BodyAnchor>(sbody.BodyAnchorList);
            this.VertexPinList  = CP.CloneList <PmxSoftBody.VertexPin>(sbody.VertexPinList);
            this.VertexIndices  = CP.CloneArray_ValueType <int>(sbody.VertexIndices);
        }
Beispiel #2
0
 public void FromPmxSoftBody(PmxSoftBody sbody, bool nonStr = false)
 {
     if (!nonStr)
     {
         Name  = sbody.Name;
         NameE = sbody.NameE;
     }
     Shape     = sbody.Shape;
     Material  = sbody.Material;
     Group     = sbody.Group;
     PassGroup = sbody.PassGroup.Clone();
     IsGenerateBendingLinks = sbody.IsGenerateBendingLinks;
     IsGenerateClusters     = sbody.IsGenerateClusters;
     IsRandomizeConstraints = sbody.IsRandomizeConstraints;
     BendingLinkDistance    = sbody.BendingLinkDistance;
     ClusterCount           = sbody.ClusterCount;
     TotalMass      = sbody.TotalMass;
     Margin         = sbody.Margin;
     Config         = sbody.Config;
     MaterialConfig = sbody.MaterialConfig;
     BodyAnchorList = CP.CloneList(sbody.BodyAnchorList);
     VertexPinList  = CP.CloneList(sbody.VertexPinList);
     VertexIndices  = CP.CloneArray_ValueType(sbody.VertexIndices);
     FromID(sbody);
 }