Giving ground vehicles more traction

Ask questions, discuss ideas, get answers
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Giving ground vehicles more traction

Post by Swaffy »

Aww, sweet. That's what I was looking for.
I'll go test it right now.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Giving ground vehicles more traction

Post by Swaffy »

Okay, they have more traction now that I multiplied their resistance by 4. But now the vehicles are a lot slower.
Is that because I made the Default material have 4 times the resistance? What's causing this issue?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Giving ground vehicles more traction

Post by Apache Thunder »

Did you also adjust the wheel material resistance? You may also try reducing the friction of the ground materials.
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Giving ground vehicles more traction

Post by Swaffy »

Can you explain to me what the friction line does?
Actually, can you explain these three?

Code: Select all

MaterialManager.materialFriction 1.0
MaterialManager.materialElasticity 0
MaterialManager.materialResistance 0.02
I thought resistance and friction was the same. But I only changed the resistance before, never touching the other two.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

got a bit tired once on a little hill there it was allmost impossible to go over so you had to run all the way around it. i then turned up the friction for grass a notch and voila one could run over the hill where there was grass no problem.

sideeffects tho that i didnt tought of from start, #snipers could climb higher up in the mountains finding new spots to snipe from (shanged the gameplay quite a lot), #with the german bmw motorcycle when you turned hard on gras it flipped over if driving fast.

i guess it a bit as grip between different materials, try it out and see what you think :)
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Giving ground vehicles more traction

Post by Swaffy »

Friction ... friction ... alright. Be back soon. Well, after I get home from college.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Giving ground vehicles more traction

Post by Apache Thunder »

I'm not quite sure the exact difference between resistance and the friction settings.

Seems resistance has a greater impact then friction. For example, I was able to get C4 to stop falling out of the truck beds in DC (for the most part anyway) by increasing that projectile's resistance value.

The Elasticity is easy. That's basically the "bouncyness" the material has. It controls how much inertia is reflected when an object hits something. For example I have set it to 3+ on my Koopa shells in my Mario Kart mod so that they bounce when they hit walls. If it was set to zero, then the shells would hit a wall and stop dead in it's tracks with little to no rebound. My soccer balls in the BFH mod also use this code so the ball will bounce...like a ball. :P
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Giving ground vehicles more traction

Post by Swaffy »

I figured it out. Here:

Code: Select all

MaterialManager.materialFriction 1.0
^ More traction. THe higher the number, the less "slideyness."

Code: Select all

MaterialManager.materialElasticity 0
^ More bouncyness.

Code: Select all

MaterialManager.materialResistance 0.02
^ More traction, but lower speeds. It's like vehicles dragging a giant weight behind them. A vehicle's tire will resist movement on the material, depending on the number set.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply