I need wheels rpm for sound script but rpm goes crazy.1 frame goes 3000 and down -1000.How can I fix this

I calculate with this.

```
engineRPM = Mathf.Round((RL.rpm+ RR.rpm )/2 * gearRatio[currentGear]);
soundRPM = Mathf.Round(engineRPM * (1000 / 420));
```

This is just a math problem.

First, break ALL of that nasty tangled mathy code apart, do one calculation per line, and print out the intermediate results.

get the gear ratio

print it out

print each RPM out

sum them, do the multiply

etc etc etc

For example, `(1000 / 420)`

is actually the integer value `2`

because they are both integers.