Skip to content

Commit

Permalink
Physics oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
Speykious committed Feb 19, 2024
1 parent 4803ab3 commit 4797f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inox2d/src/physics/runge_kutta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub fn tick<const N: usize, T: IsPhysicsVars<N>, P>(
vars[i] = curs[i] + h * (k1s[i] + 2. * k2s[i] + 2. * k3s[i] + k4s[i]) / 6.;
if !vars[i].is_finite() {
// Simulation failed, revert
phys.vars.set_f32s(curs);
vars = curs;
break;
}
}
Expand Down

0 comments on commit 4797f46

Please sign in to comment.