News for hackers. Stuff that matters.
Re:Show HN: Newton Wars – Fight your friends and planetary g... by gus_massa on Saturday October 31, 2026 @03:37PM (#50319343)
Are you stimulating gravity from all the planets, or do you use only the nearest one?
Re:Show HN: Newton Wars – Fight your friends and planetary g... by neuling on Monday November 02, 2026 @06:11AM (#50335371)
Actually all of them. Every step adds up the pull of every planet at the rocket’s current position. Realistic gravity made shots feel unfair, too weak a falloff made them feel floaty. I tried a few versions before landing on something in between.
Re:Show HN: Newton Wars – Fight your friends and planetary g... by gus_massa on Monday November 02, 2026 @06:54AM (#50335645)
I'm not sure what you mean.

Are you using F = m * M / r^2 with and tweaked the value of M until it look right?

Or you changed the 2 in the exponent?

Some parts of the trajectories in the demo look weird for plain mM/r^2