Modify comments, more non-functional code cleanup

This commit is contained in:
Pitchaya Boonsarngsuk
2018-01-31 21:11:10 +00:00
parent 0bfd613d9e
commit 961c94391c
4 changed files with 40 additions and 11 deletions

View File

@@ -108,9 +108,9 @@ export default function (sim, forceS, forceF) {
function sampleEnded() {
event.call("startInterp");
simulation.stop();
simulation.force("Sample force", null);
// Reset velocity of all nodes
for (let i=sample.length-1; i>=0; i--){
sample[i].vx=0;
sample[i].vy=0;