Ok. What we are doing here is messy.
What we are doing is modulating the velocity. There is also a dt
in there to try to make it not frame dependant..
The way things are done right now, we are cascading the limit_speed with the physics model,
We can simplify it to a euler integration (It's actuallyu runge-kutta)..
What we are doung is:
v1 = v0 + adt
Basically this means that the current velocity is the last vel plus the acceleration, times the
time passed from the last instance. This is then chained to the limit speed which does:
v = (v1 - vmax)(1-3dt)
So we can right the composite form as:
v = (v0 + adt - vmax) 1-3dt) = v0 + adt - vmax - 3dtv0 - 3adt2 + 3dtvmax
-- Yes. This is hacky. I will try to play with some equasions later.