### Gear ratios with manual transmissions

Posted:

**Thu Sep 06, 2007 4:34 am**Ok, probably the wrong forum, probably should be in a car forum , but I will give it a shot.

I am having a bit of trouble with how gears work in a car.

Lets say the engine is always running at 3,000 rpm.

In first gear the ratio is 2.315 : 1

In Second gear, the ratio is 1.568 :1

And so forth, untill you get to fifth gear.

Well as most of you guys who can read and understand english, I am making a car game.

So.. I could use someones help that knows alot or stuff about the transmission box.

In my signature is the latest release to my game, but here is the code I am working with right now.

where 3 = 3000 rpm

where rpm = rpm

where rpmm = rpm max - just like a real car

How would I get my car to work like a real car?

I am having a bit of trouble with how gears work in a car.

Lets say the engine is always running at 3,000 rpm.

In first gear the ratio is 2.315 : 1

In Second gear, the ratio is 1.568 :1

And so forth, untill you get to fifth gear.

Well as most of you guys who can read and understand english, I am making a car game.

So.. I could use someones help that knows alot or stuff about the transmission box.

In my signature is the latest release to my game, but here is the code I am working with right now.

Code: Select all

```
If gear = 1 Then ratio = 2.315
If gear = 2 Then ratio = 1.568
If gear = 3 Then ratio = 1.195
If gear = 4 Then ratio = 1.000
If gear = 5 Then ratio = 0.915
If rpm < rpmm Then
rpm = 3 / ratio
EndIf
If rpm < 0 Then rpm = 0
```

where rpm = rpm

where rpmm = rpm max - just like a real car

How would I get my car to work like a real car?