Dark Bit Factory & Gravity

GENERAL => Projects => Topic started by: Rattrapmax6 on August 06, 2006

Title: Mouse/Key Shifter, (Gear calculation lib)
Post by: Rattrapmax6 on August 06, 2006
This is a math and input lib made, or being made, to work with gear calculation and keyboard control (or mouse too! (shift simular to that of a real car)).

Right now, it works fully for what is has (thus why I'm releasing it as lib form), You can quickly:

-Assign gear ratios that automaticaly set to the proper index..
-Translate the gear index values to gear names (eg: R-N-1-2-3-4-etc...)..
-Return speed from gear ratios, rpm, and tire diameter in MPH or Km/h..
-Sync mouse to act like a gear shifer (requires screens min to be 400x400)..
-Shift gears with keys easily..
-And activate a clutch option for semi-full manual controls..

This is 1 of 3 libs I'm messing with, this one is a lil more complete than the others.... For additions to this one later, I might add:

- RPM drops/jumps calcs for when shifting up or down
- Flywheel HP to Wheel HP (given Ratios, tire diameter, etc)

... and however many more I dig up.... ;)

Download GEAR Calculator.zip (http://fileanchor.com/50914-d)

C&C and or bug issues, or ideas that might be usefull additions to this lib, are welcome.... =) ... Enjoy!

PS: Mouse sync can only use 4 or 5 speed gearing, if it's a cool idea, I might add up to 6 speeds and so on.... ;) ....

PPS: It's in the WIPs forum here, I might add to it, etc.... But so far, I hope it's enough for good use! ;)