예제 #1
0
 /// <summary>
 /// Adds the floor.
 /// </summary>
 /// <param name="friction">
 /// The friction.
 /// </param>
 public void AddFloor(double friction)
 {
     for (int i = 0; i < this.Positions.Length; i++)
     {
         var c = new FloorConstraint(i, friction);
         this.Constraints.Add(c);
     }
 }
예제 #2
0
 /// <summary>
 /// Adds the floor.
 /// </summary>
 /// <param name="friction">
 /// The friction.
 /// </param>
 public void AddFloor(double friction)
 {
     for (int i = 0; i < this.Positions.Length; i++)
     {
         var c = new FloorConstraint(i, friction);
         this.Constraints.Add(c);
     }
 }