Permalink
Browse files

fix negated y velocity bug

  • Loading branch information...
smcameron committed Apr 13, 2014
1 parent 3a1eac9 commit 698e47a86ddcc4ead69a75ac60f46484dde8a0a4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 698e47a

Please sign in to comment.