Angelo

30-05-2007, 03:31 PM

Hi, I've got the following question:

Has anyone got an idea for cars torque?

I mean I'd like to do it through a real torque curve.

But my question is how to do it... (not asking for code but for sketches...).

I was thinking and came up with this:

Give the torque curve a formula, I think if I take a look at the graph I think most cars just have a quadratic formula (or maybe a third dimensional).

So, to create a formula won't be that hard (I don't see problems in this one yet).

But how to go further?

I came up with this:

Every gear has each own curve, which mean its own formula, still no problem.

But how can I implement the formula?

Maybe by using RPM?

How the car accelerates is defined by the acceleration of rpm (correct me if I'm wrong).

By using the the formula I can say x = rpm.

y = acceleration speed.

And then there is the speed down (by releasing the driving button) this acceleration will be defined by a "- constantnumber * weightofthecar and some other car-related code".

The acceleration (or should I say de-acceleration) of the rpm will be something like:

Torquecurve * "- constantnumber * weightofthecar and some other car-related code.

So that when someone releases the driving button and pushing it again, the rpm will decrease and then increase.

And because rpm = x I can find the y = acceleration whenever I want...

My question is, will this be a good way to do this?

Is it reliable?

Or does anyone have any other ideas?

Ideas are always welcome,

Thanks in advance.

Angelo.

Has anyone got an idea for cars torque?

I mean I'd like to do it through a real torque curve.

But my question is how to do it... (not asking for code but for sketches...).

I was thinking and came up with this:

Give the torque curve a formula, I think if I take a look at the graph I think most cars just have a quadratic formula (or maybe a third dimensional).

So, to create a formula won't be that hard (I don't see problems in this one yet).

But how to go further?

I came up with this:

Every gear has each own curve, which mean its own formula, still no problem.

But how can I implement the formula?

Maybe by using RPM?

How the car accelerates is defined by the acceleration of rpm (correct me if I'm wrong).

By using the the formula I can say x = rpm.

y = acceleration speed.

And then there is the speed down (by releasing the driving button) this acceleration will be defined by a "- constantnumber * weightofthecar and some other car-related code".

The acceleration (or should I say de-acceleration) of the rpm will be something like:

Torquecurve * "- constantnumber * weightofthecar and some other car-related code.

So that when someone releases the driving button and pushing it again, the rpm will decrease and then increase.

And because rpm = x I can find the y = acceleration whenever I want...

My question is, will this be a good way to do this?

Is it reliable?

Or does anyone have any other ideas?

Ideas are always welcome,

Thanks in advance.

Angelo.