- this.constraints.push(new Constraint(\r
- this.particles[this.getVertexIndex(x, y)],\r
- this.particles[this.getVertexIndex(x+1, y)],\r
+ this.springs.push(new Spring(\r
+ this.masses[this.getVertexIndex(x, y)],\r
+ this.masses[this.getVertexIndex(x+1, y)],\r