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); } }
public void SetIdentity() { stack.Clear(); stack.Push(IMatrix.Identity()); }