Exemple #1
0
 public ElementInfo_Waterbag(ElementInfo_Waterbag e)
     : base(e)
 {
     m_BagWidth      = e.m_BagWidth;
     m_PressingShift = false;
     foreach (var j in e.m_Joints)
     {
         m_Joints.Add(new Joint(j));
     }
     m_Vectors = new List <VertexPositionColorTexture>(e.m_Vectors);
     m_Segments.Clear();
     foreach (var seg in e.m_Segments)
     {
         m_Segments.Add(new Segment(this, seg));
     }
 }
Exemple #2
0
 public Segment(ElementInfo_Waterbag elm, Segment seg)
 {
     ParentElement = elm;
     J1            = seg.J1;
     J2            = seg.J2;
 }
Exemple #3
0
 public Segment(ElementInfo_Waterbag elm, Joint j1, Joint j2)
 {
     ParentElement = elm;
     J1            = j1;
     J2            = j2;
 }