In my car simulation i have change a lot of settings and i am trying a new approach.
I try to simulate an Engine and then get the resulting speed of the wheels.
Here is what i have done so far, but i don't think that my engine_rpm calculation is correct..
I try to calculate it from the engine angular velocity.
var maxTorque = getTorqueCurve( getRPMEngine() ); //This function return a Torque at a given rpm ( rpm minimum is 1000 ) engineAngularAcceleration = maxTorque / getCylinderInertia( 1000, 0.5 ); engineAngularVelocity += engineAngularAcceleration * TIME_STEP; var rps_engine = engineAngularVelocity * Math.PI * 2; rpm_engine = rps_engine * 60;
Any help to clear this out would be welcome.
Thank you very much.