playMaker

Author Topic: Fake car gearbox with Playmaker  (Read 1015 times)

Aaddiction

  • Full Member
  • ***
  • Posts: 166
Fake car gearbox with Playmaker
« on: December 01, 2018, 04:19:57 AM »
Hi all,

I'm trying to create a car gearbox with engine RPM, Gear Ratios, Final Ratio and Speed of wheels.

I don't want it to be physics based, but pure mathematical formula/correlation.
I'd like to have the following values:

Code: [Select]
RPM = 1000 to 8000 (rpm)
Engine Power = multiplier of the rpm per second (curve based)
Gears = 6 (number of gears)
Gear Ration = 2 (1st); 1.8 (2nd); 1.6 (3rd)...
Final Ratio = 1.5 (fr)
Speed = fixed value based on the RPM x Gear Ratio x Final Ratio

First what should be the math formula I need to use and how to translate it into movement?

Code: [Select]
(RPM x engine power (curve value)) x GR x FR = Speed (float) => translate object
How to shift from gear to gear so it's synchronized with the speed, and how to simulate that with higher speed and gear the rpm multiplier to be less?

Lot's of questions, but would appreciate if you give me the right direction.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Fake car gearbox with Playmaker
« Reply #1 on: December 03, 2018, 01:25:42 AM »
Hi,

 uhm, sounds like complex math, I would first try to find in various forum how developers approach such feature.

as far as making it in PLayMaker, if you have a formula ready to use, I can show you how to work it out, but usually, it's simple, the complex part is to get the formula in the first place.

Bye,

 Jean