Quantcast
Channel: Questions in topic: "realistic"
Viewing all articles
Browse latest Browse all 146

How to make traction control for car?

$
0
0
Hello again! I am trying to do a traction control for my car, that is, when I accelerate suddenly, the RPM goes up faster and the car slides slightly, what I did was modify the wheelcolliders when the gear change is less than 1, but not It convinces me (Rear traction bool = rear wheels acelerate). if(RearTraction == true && Gear <= 1f) { WheelFrictionCurve frictionCurveTI = WheelTI.forwardFriction; frictionCurveTI.stiffness = TractionStifness; frictionCurveTI.extremumValue = TractionExtremumValue; WheelTI.forwardFriction = frictionCurveTI; WheelFrictionCurve frictionCurveTD = WheelTD.forwardFriction; frictionCurveTD.stiffness = TractionStifness; frictionCurveTD.extremumValue = TractionExtremumValue; WheelTD.forwardFriction = frictionCurveTD; }else{ WheelFrictionCurve frictionCurveTI = WheelTI.forwardFriction; frictionCurveTI.stiffness = 0.2f; frictionCurveTI.extremumValue = 20000f; WheelTI.forwardFriction = frictionCurveTI; WheelFrictionCurve frictionCurveTD = WheelTD.forwardFriction; frictionCurveTD.stiffness = 0.2f; frictionCurveTD.extremumValue = 20000f; WheelTD.forwardFriction = frictionCurveTD; } I am trying to do something like this (watch the second 0:07): https://www.youtube.com/watch?v=tJf6AZ01Mbg Thank you!

Viewing all articles
Browse latest Browse all 146

Trending Articles