Car Gears and Velocity

Blitz3D Forums/Blitz3D Programming/Car Gears and Velocity

Santiworld(Posted 2008) [#1]
Hi, i making a race car game...

i have a problem when try to simulate the power, and the Gear...

when i have the first gear, i have more power, but les velocity..
and in the last gear, (5) i have the top speed but less engine force

i have the relationships of the corvete:

dim rgear#(7)
rgear(0) = 0
rgear(1) = 2.66
rgear(2) = 1.79
rgear(3) = 1.30
rgear(4) = 1.00
rgear(5) = 0.74
rgear(6) = 0.50
rgear(7) = 2.90

i using ode, i have 2 variables, force and torque...
but i don't know what to do...

someone can helpme with this?...

regards...
Santiago


Moraldi(Posted 2008) [#2]
I don't know much about ode and how you increase the car speed but:
You should have only one variable: torque. Velocity depends on torque.
Larger torque lowers velocity.
Lower torque increases speed.

BTW: Your web site is very nice


EmerGki(Posted 2008) [#3]
Hi Latatoy...

You can do:

In each gear you can place a "Speed limit", and, a variable to increase the speed according with the current gear and torque...

Example:

Gear 1 - Increase Speed Rate = 0.05
Gear 2 - Increase Speed Rate = 0.03
Gear 3 - Increase Speed Rate = 0.01...