I'm writing a game that involves launching box2D bodies and I wanted to provide a visual indicator of where the body will go when released. I'm using basic projectile motion maths to draw the path I expect the body to take, but when it's launched it consistently arcs lower than my predicted curve (by roughly 5-10%).
Can anyone think of any reason this would be happening? Does box 2D use some other algorithms for gravity/velocity/etc that would be inconsistent with what I'm using (like maybe simplified estimated maths for performance reasons)? Or is there some sort of global damping/drag that is being applied for stability sake?
I could just use trial & error to work out what percentage to dampen my prediction path, but that seems a bit hacky without knowing why it's not working.
If it makes any difference I'm using the Box2D implementation inside the AndEngine for android (which I believe is native compiled C++, not Java).
Can anyone think of any reason this would be happening? Does box 2D use some other algorithms for gravity/velocity/etc that would be inconsistent with what I'm using (like maybe simplified estimated maths for performance reasons)? Or is there some sort of global damping/drag that is being applied for stability sake?
I could just use trial & error to work out what percentage to dampen my prediction path, but that seems a bit hacky without knowing why it's not working.
If it makes any difference I'm using the Box2D implementation inside the AndEngine for android (which I believe is native compiled C++, not Java).