public void AddFloor(double friction) { for (int i = 0; i < Positions.Length; i++) { var c = new FloorConstraint(i, friction); Constraints.Add(c); } }