- this.particles[this.getVertexIndex(0, 0)].movable = false;\r
- this.particles[this.getVertexIndex(0, numPointsHeight-1)].movable = false;\r
- this.particles[this.getVertexIndex(numPointsWidth-1, 0)].movable = false;\r
+ //this.particles[this.getVertexIndex(0, 0)].movable = false;\r
+ const n = 3;\r
+ for (let i = 0; i <= n; i++)\r
+ this.particles[this.getVertexIndex(0, Math.floor((numPointsHeight-1)*(i/n)))].movable = false;\r
+ //this.particles[this.getVertexIndex(0, numPointsHeight-1)].movable = false;\r
+ //this.particles[this.getVertexIndex(numPointsWidth-1, 0)].movable = false;\r