Skip to main content

Timeline for Gravity model for a simulator

Current License: CC BY-SA 3.0

15 events
when toggle format what by license comment
May 2, 2015 at 21:41 comment added RK1 I was thinking about implementing the Runge-Kutta method or Verlet algorithm. I think this does involve changing my interact(Body) method and passing time to the method somehow? Right now, I have a Timer in my drawing method that calls the interact(Body) for every Body each time.
May 2, 2015 at 17:22 comment added David Zhang ...which, being only a first-order method, can be horribly inaccurate when the forces involved change rapidly over time. On the other hand, if you don't need high accuracy and only want your simulation to look convincing for simple systems, the added complexity is probably not worth it.
May 2, 2015 at 17:18 comment added David Zhang I don't know if this is appropriate for Code Review, but if the accuracy of the simulation is important to you, you may want to consider implementing a more sophisticated numerical integrator. What you're doing essentially amounts to Euler's method...
May 2, 2015 at 0:50 history tweeted twitter.com/#!/StackCodeReview/status/594302985024491520
May 1, 2015 at 21:45 answer added Octopus timeline score: 3
May 1, 2015 at 20:45 answer added Michael Macha timeline score: 2
May 1, 2015 at 19:48 history edited RK1
edited tags
May 1, 2015 at 19:16 review Suggested edits
May 1, 2015 at 19:27
May 1, 2015 at 18:53 vote accept RK1
May 1, 2015 at 18:26 answer added JS1 timeline score: 14
May 1, 2015 at 18:14 answer added user71686 timeline score: 7
May 1, 2015 at 17:30 history edited RK1 CC BY-SA 3.0
Added a question
May 1, 2015 at 17:27 comment added Phrancis Welcome to Code Review! This looks like a great first question, I'm sure you'll get some equally great answers from our Java pros!
May 1, 2015 at 17:24 review First posts
May 1, 2015 at 17:40
May 1, 2015 at 17:19 history asked RK1 CC BY-SA 3.0