// Token: 0x060000E5 RID: 229 RVA: 0x0000DFA0 File Offset: 0x0000C1A0
 public PmxBodyPassGroup(PmxBodyPassGroup pg) : this()
 {
     for (int i = 0; i < 16; i++)
     {
         this.Flags[i] = pg.Flags[i];
     }
 }
示例#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);
 }
 public PmxBody()
 {
     Name      = "";
     NameE     = "";
     PassGroup = new PmxBodyPassGroup();
     InitializeParameter();
     BoxSize = new Vector3(2f, 2f, 2f);
 }
示例#4
0
 public PmxSoftBody()
 {
     Name      = "";
     NameE     = "";
     Shape     = ShapeKind.TriMesh;
     Material  = -1;
     Group     = 0;
     PassGroup = new PmxBodyPassGroup();
     InitializeParameter();
     BodyAnchorList = new List <BodyAnchor>();
     VertexPinList  = new List <VertexPin>();
     VertexIndices  = new int[0];
 }
 public void FromPmxBody(PmxBody body, bool nonStr = false)
 {
     if (!nonStr)
     {
         Name  = body.Name;
         NameE = body.NameE;
     }
     Bone            = body.Bone;
     Group           = body.Group;
     PassGroup       = body.PassGroup.Clone();
     BoxType         = body.BoxType;
     BoxSize         = body.BoxSize;
     Position        = body.Position;
     Rotation        = body.Rotation;
     Mass            = body.Mass;
     PositionDamping = body.PositionDamping;
     RotationDamping = body.RotationDamping;
     Restitution     = body.Restitution;
     Friction        = body.Friction;
     Mode            = body.Mode;
     FromID(body);
 }