Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix negated y velocity bug

  • Loading branch information...
commit 698e47a86ddcc4ead69a75ac60f46484dde8a0a4 1 parent 3a1eac9
@smcameron authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  curlyvortex/curlyvortex.pde
View
2  curlyvortex/curlyvortex.pde
@@ -79,7 +79,7 @@ void update_velocity_field()
fy2 = ((float(y + 1) + dy) / float(ydim)) * nscale;
n1 = noise(fx1, fy1, c);
n2 = noise(fx2, fy1, c);
- ny = amp * (n2 - n1);
+ ny = -amp * (n2 - n1);
n1 = noise(fx1, fy1, c);
n2 = noise(fx1, fy2, c);
nx = amp * (n2 - n1);
Please sign in to comment.
Something went wrong with that request. Please try again.