Challenge: Mutual repulsion
Turn mutual attraction into mutual repulsion.
Make trails!
Hint
Mover.prototype.calculateAttraction = function(m) {
;
var strength = ;
;
};
This is the program we just saw, where movers mutually attract each other. Change the force calculation so
that they mutually repulse each other instead, based on their distance.