different charges

This commit is contained in:
nora 2021-06-18 13:27:13 +02:00
parent 42ed986722
commit 5febb6c83c
2 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ let mouseProperties: MouseProperties = {charge: 0, strength: 1, pos: new Vector(
export function initParticles() {
particles = [];
const chargeToMass = [1, 1, 100];
const chargeToMass = [1, 1, 1];
for (let i = 0; i < 200; i++) {
const charge = Math.random() < 0.3 ? 0 : Math.random() < 0.5 ? 1 : -1;