Skip to content

Commit eacee59

Browse files
authored
Update particle.js
1 parent 4a1840c commit eacee59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/src/particle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function drawParticles() {
5555
}
5656
else if (particle.x != particle.ogX || particle.y != particle.ogY) {
5757
theta = Math.atan2(particle.ogY - particle.y, particle.ogX - particle.x)
58-
distance = Math.hypot(particle.ogX - particle.x, particle.ogY - particle.y)+Math.random()
58+
distance = Math.hypot(particle.ogX - particle.x, particle.ogY - particle.y)+(Math.random()*3)
5959
particle.x += Math.cos(theta) * distance * returnSpeed
6060
particle.y += Math.sin(theta) * distance * returnSpeed
6161
}

0 commit comments

Comments
 (0)