Outerra forum

User mods, screenshots & videos => Vehicles => Topic started by: Shadowfita on July 24, 2014, 03:15:27 am

Title: Vehicle Variables
Post by: Shadowfita on July 24, 2014, 03:15:27 am
I was wondering if someone can explain the mass, steering, steering_ecf, centering and centering_ecf more indepth? As to what they do exactly, The wiki for me is rather vague... I probably just don't understand it.

I'm trying to make an ATV but it's very hard to maneuver.

I was also wondering how one changes the max speed of an aircraft?
Title: Re: Vehicle Variables
Post by: PytonPago on July 24, 2014, 05:10:08 am
Mass affects the driving in how much force the engine needs to get it run and the vehicles momentum at some speed. Steering is the angle of steering wheels (max value) and the _ecf one says how fast it comes to the max value (turning speed for the steering) ... centering variables have the effect on the wheels trying to get to the zero position ... doe for maneuvers, the wheel definition variables in script are playing a great role too - slip, width etc.
Title: Re: Vehicle Variables
Post by: Shadowfita on July 24, 2014, 08:06:00 am
Mass affects the driving in how much force the engine needs to get it run and the vehicles momentum at some speed. Steering is the angle of steering wheels (max value) and the _ecf one says how fast it comes to the max value (turning speed for the steering) ... centering variables have the effect on the wheels trying to get to the zero position ... doe for maneuvers, the wheel definition variables in script are playing a great role too - slip, width etc.

Thank you.
Title: Re: Vehicle Variables
Post by: Shadowfita on July 24, 2014, 08:11:53 am
I'm having another issue, I have 4 vehicles. All 4 are running off of the same vehicle script file but 3 of them roll extremely easily. The one that doesn't throws this error when spawned: 'ERROR: center of mass clamped to the object's bounding box, from: x=. 00589, y=.029221, z=6.45496 to: x=.00589, y=.029221, z=2.485284'

I'm almost certain that the error is what makes the first vehicle run fine on the script, the other 3 do not throw the error and roll.
Title: Re: Vehicle Variables
Post by: cameni on July 24, 2014, 10:39:33 am
Your center of mass seems to be set too high. If you do not specify COM in the script, it's taken from the pivot point of the model. The easiest thing is to place the pivot where your COM should be, while modeling.
Else you can adjust it by providing com offset in init_chassis, that says where the com is relative to the model pivot.
Title: Re: Vehicle Variables
Post by: Shadowfita on July 24, 2014, 11:20:48 am
Your center of mass seems to be set too high. If you do not specify COM in the script, it's taken from the pivot point of the model. The easiest thing is to place the pivot where your COM should be, while modeling.
Else you can adjust it by providing com offset in init_chassis, that says where the com is relative to the model pivot.

Thank you, I have now fixed my problem ^_^
Title: Re: Vehicle Variables
Post by: PytonPago on July 24, 2014, 12:18:58 pm
Be sure to post at least the vehicles pictures !  ;D
Title: Re: Vehicle Variables
Post by: Shadowfita on July 24, 2014, 08:06:25 pm
(http://puu.sh/apcfM/f8d7fa9174.jpg)

I'm working on importing every halo vehicle/building I can.

Ignore the errors, I was to tired to modify the model to fix them for the 3rd time.

The Warthogs are up to scale, The building is not.


The ATV I was doing was just a test vehicle to see how the vehicles are handled, Basically just a box on wheels :p
Title: Re: Vehicle Variables
Post by: PytonPago on July 25, 2014, 01:46:02 am
You should make the windshields transparent .... errors are just for the bounding box - just add the "com" part to the line where mass is :

Code: [Select]

 return { com:{y:-0.47, z:0.31}, mass:13710, steering:2.0, steering_ecf:60, centering: 2.6, centering_ecf: 20};
Title: Re: Vehicle Variables
Post by: Shadowfita on July 25, 2014, 03:32:30 am
I know how to fix the errors, Thanks though. How would I make the windshields transparent? I was never to sure. I'm not the best at modeling so I apologize for my newbieness.
Title: Re: Vehicle Variables
Post by: PytonPago on July 25, 2014, 06:39:01 am
I know how to fix the errors, Thanks though. How would I make the windshields transparent? I was never to sure. I'm not the best at modeling so I apologize for my newbieness.

In Blender or 3DSMax ... select the windshield and split it from the mesh to be a new one. Than change the material (name it glass). Then after importing it into OT again, just tweak the .mtb file to make the glass material transparent ...

 ... but if ya have the models somewhere, i could do that for ya too ...
Title: Re: Vehicle Variables
Post by: Shadowfita on July 25, 2014, 06:42:57 am
Is there anything I can contact you on easier?
Title: Re: Vehicle Variables
Post by: PytonPago on July 25, 2014, 07:13:52 am
 you can upload the models on google dive  or other upload pages and i send ya then the modified files after importing them ... just PM me a link to them. (have Skype, but im so rarely there ...)