Game Physics With RK4 Implementation For A 2D Platformer

Posted by oscar.rpr on Game Development See other posts from Game Development or by oscar.rpr
Published on 2011-11-25T03:12:29Z Indexed on 2011/11/25 10:09 UTC
Read the original article Hit count: 546

Filed under:
|
|

I been reading about RK4 for physics implementation in a game, so I read in some pages and all people recommend me this page:

http://gafferongames.com/game-physics/fix-your-timestep/

This page shows clearly how this one works, but I can't figure out how to implement in my game, maybe I don't understand that good but I find some things that are not really clearly to me.

In my game, the player decides when change direction in the X-Axis but I can't figure out how with this RK4 implementation change the direction of the object, in the example the point goes side to side but I don't understand how I can control when he goes right or left.

So if anyone can give a little bit of clarity in this implementation and my problem which I do not understand I will be really grateful.

Thanks beforehand

© Game Development or respective owner

Related posts about c++

Related posts about physics