Re:Modeling Physics in Javascript: Gravity and Drag
by bkanber on Saturday September 08, 2012 @10:36AM
(#4493000)
I actually mentioned that in a comment lower on this page. I will be talking about ODE solvers a couple of articles from now. The Euler method isn't acceptable for actual simulation but it's the easiest to understand and it gets the job done for now!
[ Parent
| on HN ]
Re:Modeling Physics in Javascript: Gravity and Drag
by xxbondsxx on Saturday September 08, 2012 @01:07PM
(#4493350)
The Velocity Verlet integration method isn't much of a jump in complexity (http://en.wikipedia.org/wiki/Verlet_integration#Velocity_Ver...) and works _great_ for kinematic simulators.
As a cool feature, it maintains the energy of the system, so you can slow down, stop, and then rewind time and arrive at the same previous configuration, all by changing the delta T's inside the evaluation.
Re:Modeling Physics in Javascript: Gravity and Drag
by bkanber on Saturday September 08, 2012 @01:28PM
(#4493427)
I'll definitely be talking about this one in my Solvers article!
Re:Modeling Physics in Javascript: Gravity and Drag
by baq on Saturday September 08, 2012 @03:34PM
(#4493759)
be sure to read "numerical recipes in c" chapter 16 first.
fwiw the only thing you need to do to be one of the best references on numerical integration in js on the net is translate the code to javascript...