Sunday, 28 February 2010

Applying the Car Tutorials PT 2

+Another thing I noticed was that the buggy itself was leaning to the left, as if it had a puncture. I suspected that this problem may have lied with the wheel colliders not being configured properly. Sure enough, by adjusting the radius of the wheel colliders, as well as repositioning the colliders so that they were in the dead centres of each wheel, the buggy became level again.

However, the buggy would still fly all over the place, and was prone to flipping over if it took a turn to sharply. To try and find a fix to this, I once again consulted the tutorial on the website. It was here that I noticed the following paragraph:

"I would not recommend changing the asymptote values until you know exactly how they work, it’s much easier to change the “Stiffness” value. This is essentially a multiplier for the curve, when set lower, it decreases both values linearly. You will want this value set fairly low, generally less than 0.1 if you want your car to slide nicely. If the sideways friction stiffness is set too high, you may have some stability issues, the car will stick to the road so much, that when you try to turn at high speeds, your car will quite literally roll off into space."

As it turns out, I still had the stiffness values of my wheel colliders set to the default value of 1. By reducing them down to 0.1, I not only noticed that my car was a lot more stable when driving around, but also that it moved at a low slower speed.


No comments:

Post a Comment