-
How do I make a basic acceleration engine (in KPH) in VB, with easy-to-change values to alter acceleration?
I just need a basic engine which simulates a car, it accelerations, but the acceleration gets slower as it accelerates more... hope someone understands. ;-)
Thanks.
-Git
-
I'm sure you mean that Acceleration gets slower due to more speed, actually that's the overall acceleration that gets slower, while the engine accelerates constantly
Friction = k * v^2
where k is the air resitance constant.
v = v + a - Friction
to calculate the speed for each next moment you add up acceleration and substract the friction.