Skip to content

Commit

Permalink
fix negated y velocity bug
Browse files Browse the repository at this point in the history
  • Loading branch information
smcameron committed Apr 13, 2014
1 parent 3a1eac9 commit 698e47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curlyvortex/curlyvortex.pde
Expand Up @@ -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);
Expand Down

0 comments on commit 698e47a

Please sign in to comment.