Change velocity-difference threshold calculation method and misc small non-functional changes (PROPER)
This commit is contained in:
@@ -27,6 +27,7 @@ function startLinkSimulation() {
|
||||
|
||||
simulation
|
||||
.alphaDecay(1 - Math.pow(0.001, 1 / ITERATIONS))
|
||||
//.velocityDecay(0.8)
|
||||
.force(forceName)
|
||||
// The distance function that will be used to calculate distances
|
||||
// between nodes.
|
||||
|
||||
@@ -20,7 +20,7 @@ function startNeighbourSamplingSimulation() {
|
||||
.distance(function (s, t) {
|
||||
return distanceFunction(s, t, props, norm);
|
||||
})
|
||||
.stableVelocity(1.2)
|
||||
.stableVelocity(0.004)
|
||||
.stableVeloHandler( function(){simulation.stop(); ended();} )
|
||||
);
|
||||
// Restart the simulation.
|
||||
|
||||
Reference in New Issue
Block a user