We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a1840c commit eacee59Copy full SHA for eacee59
static/src/particle.js
@@ -55,7 +55,7 @@ function drawParticles() {
55
}
56
else if (particle.x != particle.ogX || particle.y != particle.ogY) {
57
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()
+ distance = Math.hypot(particle.ogX - particle.x, particle.ogY - particle.y)+(Math.random()*3)
59
particle.x += Math.cos(theta) * distance * returnSpeed
60
particle.y += Math.sin(theta) * distance * returnSpeed
61
0 commit comments