We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa1cf80 commit ebbb180Copy full SHA for ebbb180
examples/shape_matching.html
@@ -330,7 +330,7 @@ <h3>References</h3>
330
p.yOld = p.y;
331
332
// integrate position
333
- if (gui.simulateMotion)
+ if ((gui.simulateMotion) && (i != gui.selectedParticle))
334
{
335
p.x = p.x + dt * p.vx;
336
p.y = p.y + dt * p.vy;
@@ -377,7 +377,7 @@ <h3>References</h3>
377
part.goal_x = goal[0] + t_x;
378
part.goal_y = goal[1] + t_y;
379
380
381
382
part.vx += this.stiffness/this.timeStepSize * (part.goal_x - part.x);
383
part.vy += this.stiffness/this.timeStepSize * (part.goal_y - part.y);
0 commit comments