adjust constant
This commit is contained in:
parent
2acbfffc5f
commit
fb6b8aa33c
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ function move_charges() {
|
|||
charges[i].position,
|
||||
charges[j].position,
|
||||
);
|
||||
const acceleration_mag = 1 / displacement.mag() * 0.005;
|
||||
const acceleration_mag = 1 / displacement.mag() * 0.001;
|
||||
let ai = displacement.copy().normalize().mult(acceleration_mag);
|
||||
let aj = p5.Vector.mult(ai, -1);
|
||||
project_onto_plane(ai, charges[i].position);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue