Skip to main content
gamedev.net
🔒 Locked

Implementing RungeKutta4

Started by CombatWombat May 1, 2004 at 9:23 PM 1 replies 600+ views
Original Post
CombatWombat
CombatWombat
I know what it does, I know sort of how it works. What I cannot find is a simple example of how to use the hazy mathmatical jargon of f(x,t)?! in a real problem. My question, straight to the point; Euler looks like, so: acceleration = f/m; velocity += acceleration * dt; position += velocity * dt; Now how does that work in RK 2 or 4? I''ve tried all sorts of crazy things and nothing wants to work. I figured that since k1 = f''(x, t) that it is saying "k1 is the acceleration at point X0, T0. After that I get completely lost.
CombatWombat
CombatWombat
How that didnt turn up in my search for "runge kutta" is beyond me. Fixed it though, mucho thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.