예제 #1
0
 void init()
 {
     VertexConstraints = new List <VertexConstraint> ();
     VertexOld         = new List <Vec3> ();
     Force             = new Vec3(0, 0, 0);
     Mass  = 0;
     Model = IMatrix.Identity();
     foreach (var v in VertexNow)
     {
         VertexOld.Add(v * 1);
     }
 }
예제 #2
0
 public void SetIdentity()
 {
     stack.Clear();
     stack.Push(IMatrix.Identity());
 }