Пример #1
0
 public void Remove(Chain chain)
 {
     if (chain_list.Contains(chain))
         chain_list.Remove(chain);
 }
Пример #2
0
 public void Add(Chain chain)
 {
     if (!chain_list.Contains(chain))
         chain_list.Add(chain);
 }
Пример #3
0
 public void RenderChain(Chain chain)
 {
     List<PointMass> points = chain.pointmass_list;
     Color color = Color.Green;
     for (int i = 0; i < points.Count-1; i++)
     {
         linebatch.Add(new LineVertex(new Vector3(points[i].position.X, points[i].position.Y, 0), color));
         linebatch.Add(new LineVertex(new Vector3(points[i + 1].position.X, points[i + 1].position.Y, 0), color));
     }
 }