Skip to main content
12 events
when toggle format what by license comment
May 9, 2023 at 9:34 comment added Sten See also "How to get true anomaly from time?"
May 9, 2023 at 8:41 comment added w94n9 @PM 2Ring thank you for the python code demo! I think it'll really help accelerate implementing this core mechanic :)
May 9, 2023 at 8:41 comment added w94n9 @Greg Miller @ James K - Yes, it looks like Keplers equation should help with this :| I was glancingly concerned that it would require too many iterations and I have to run the final game on a mobile phone, but I think it might work out...I'm obviously not familiar with this subject deeply (and I get spun around easily) but I very much appreciate the direction you guys pointed me in! I'll bang away at that and see if I can get it to work :)
May 8, 2023 at 20:49 comment added James K When you say that you know the "true anomaly" Does this mean you know the anomaly at a given (and fixed) time $t_0$ and you want help to find the anomaly at some other time $t$ ? This is the classic "solve kepler's equation" problem.
May 8, 2023 at 19:55 history edited PM 2Ring CC BY-SA 4.0
Fixed broken URL
May 8, 2023 at 18:05 comment added PM 2Ring sagecell.sagemath.org/…
May 8, 2023 at 18:04 comment added PM 2Ring You can easily invert Kepler's equation using Newton's method. It converges quickly, unless the eccentricity is very close to 1. Here's a short demo in Python.
May 8, 2023 at 15:26 comment added stretch You're describing a software problem, not an orbital mechanics problem, and you seem to be overestimating the complexity. Your "bazillion" is less than 9 million which is a small number these days. Worst case you could precalculate millions of positions versus time and store them then just do a lookup. Can't imagine a game where time increments from seconds to hundreds of days would matter.
May 8, 2023 at 14:32 comment added Greg Miller At the risk of stating the (hopefully) obvious: have you tried solving using Kepler's equation? If so, why did that not work?
May 8, 2023 at 12:09 history edited w94n9 CC BY-SA 4.0
added 1 character in body
S May 8, 2023 at 12:08 review First questions
May 8, 2023 at 20:49
S May 8, 2023 at 12:08 history asked w94n9 CC BY-SA 4.0