I decided to change the equations of the gears' rev's/speed relationships. I started with... if you imagine straight lines on a graph. The problem I found with these is there was very little 'revs overlap' between the gears and so changing gear could only take place in small speed ranges.
I changed them initially to quadratic equations but found that manipulating a sine function more straight forward.
Here's a graph of the 5 gears' revolution to power relationship. I've added a pretty gradient to illustrate the rev's:

(you can follow you finger up a line making 'niiiiiiiiiiiii' engine noises then changing up, moving left onto the next gear if you like)
The rev's and speed will redline at the top of each dial, the rev's needle shudders slightly added a nice realistic effect.
So now thats the player's unput (acceleration, brake and shift), gear set up and sequential gearbox done, I've also done the stalling function; if revs drop below 500rpm in any gear other than 1st the engine cuts out and you stop quite suddenly (as the gradual stop was taking too long to iron out bugs).
The car artwork is also taking shape but is far too basic to publish here yet!
Sit tight.
No comments:
Post a Comment