Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Megospc committed Jul 6, 2024
1 parent 6585463 commit 345be07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Simulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ namespace Simulation {
for (uint i = 0; i < 10; i++) freqs[i] = Rand::Range(0.01, 1.00);

for (uint i = 0; i < 100; i++) {
float f = Rand::Range(0.0, SQRT(3.0));
float f = Rand::Range(0.0, SQRT(2.0));

forces[i] = Rand::Sign()*f*f;

float r = Rand::Range(0.0, SQRT(1000.0));

zones[i] = r*r;

float f2 = Rand::Range(0.0, SQRT(3.0));
float f2 = Rand::Range(0.0, SQRT(2.0));

forces2[i] = Rand::Sign()*f2*f2-forces[i];

Expand Down

0 comments on commit 345be07

Please sign in to comment.