ID:148649
Nov 26 2002, 9:49 am
|
|
Ok this is very simple, but I haven't taken a physics class yet so I always screw this up somehow. Basically I need an equation to calculate acceleration (in MPH) based on Horse Power, Torque, Weight, and the Gear Ratio. If anyone can help me out it'd be appreciated =P
|
In response to OneFishDown
|
|
Alright. While that is basically what I have, with a few differences, it does help me a little, in the sense that it doesn't tell me that I was totally wrong with my equation. Hopefully I can figure out a way to do this perfectly =)
|
I haven't taken a physics class either, and I made a racing game with decent physics. Mine isn't as in depth (yet), it only factors in tire wear, weight, horsepower, current speed, and max speed for acceleration. I find its easier to write the equations out on paper first. All I did was think of what vars I should factor in, and how they should count. Basically, if a var should be good for it, then I multiply by it, and if a var should count against it, I divide by it. The problem with more "real" equations is that they usually use units like meters per second^2, not pixels per cycle^2. Here is my acceleration equation, I hope it helps:
<code> src.speed += ( src.horsepower / 350 ) * ( ( src.max_speed - src.speed ) / ( src.weight / 10 ) ) </code>