Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Author Topic: handling.js?  (Read 3301 times)

bugsblake

  • Sr. Member
  • ****
  • Posts: 255
  • jedi master
handling.js?
« on: June 11, 2013, 06:56:44 am »

hi all

can anyone tell me just what theses do? from vehicle .js file!

const EF = 30000.0;
const BF = 4000.0;
const forceloss = EF / (0.2*maxkmh + 1);

and is all this info listed anywhere?

thanks
Logged
Intel 6 core i7 Xeon - 4930k @3.40 GHz
GTX 770 4GB X2 in SLI
Asus P9X79 Extreme MOBO
Patriot 16GB DDR3 1600MHz
SSD 250GB + SATA 500GB + SATA 1TB

giucam

  • Full Member
  • ***
  • Posts: 171
  • It's an ugly pile of bones... like me.
Re: handling.js?
« Reply #1 on: June 11, 2013, 08:41:32 am »

Well, they don't do anything really, they're just constants assignments. EF is the engine force, BF the breaking force and forceloss is, iirc, how much the engine force decreases with the speed. It's a crude emulation of the decreasing torque of higher gears.
Logged
ResidualVM 0.1.1 is OUT! www.residualvm.org

bugsblake

  • Sr. Member
  • ****
  • Posts: 255
  • jedi master
Re: handling.js?
« Reply #2 on: June 11, 2013, 09:25:07 am »

thanks giucam!

was wondering about how to get a car to accelerate faster? you see with the pontiac gto i just posted, its weight is 1645kg and top speed of 182kpm and it seems slow to get started! but i read it does 1/4 mile in such a time but mine dont! mine seems real slow at first!

i guess this is where if i wanted it to be more like the real car i would have to put gears in the .js file? is that right? is there a tut on setting up gears?

thanks
Logged
Intel 6 core i7 Xeon - 4930k @3.40 GHz
GTX 770 4GB X2 in SLI
Asus P9X79 Extreme MOBO
Patriot 16GB DDR3 1600MHz
SSD 250GB + SATA 500GB + SATA 1TB

giucam

  • Full Member
  • ***
  • Posts: 171
  • It's an ugly pile of bones... like me.
Re: handling.js?
« Reply #3 on: June 11, 2013, 09:47:49 am »

To have the car accellerate faster just increase the EF value.

Adding the gears with my script is quite simple. Just add/remove/modify the entries in chassis.forwardGears and chassis.reverseGears with the right values. You may need to modify other engine properties for fine tuning, but getting the gears right is the most important thing.
Logged
ResidualVM 0.1.1 is OUT! www.residualvm.org

bugsblake

  • Sr. Member
  • ****
  • Posts: 255
  • jedi master
Re: handling.js?
« Reply #4 on: June 11, 2013, 09:52:00 am »

thanks again! will have a tinker and see what i can come up with! will shout you back here if i need any advice! ;)
Logged
Intel 6 core i7 Xeon - 4930k @3.40 GHz
GTX 770 4GB X2 in SLI
Asus P9X79 Extreme MOBO
Patriot 16GB DDR3 1600MHz
SSD 250GB + SATA 500GB + SATA 1TB