public ClothConstraint(ClothPoint p1, ClothPoint p2, float restLength, SpringType type)
 {
     this.p1         = p1;
     this.p2         = p2;
     this.restLength = restLength;
     this.type       = type;
 }
Ejemplo n.º 2
0
        public ClothPointAttachment(ClothPoint p, Transform parentTransform)
        {
            point  = p;
            parent = parentTransform;

            bindPosition = parent.InverseTransformPoint(p.position);
        }
Ejemplo n.º 3
0
 public ClothLink(ClothPoint a, ClothPoint b)
 {
     A        = a;
     B        = b;
     restDist = Vector3.Distance(A.position, B.position);
 }