- 最后登录
- 2014-10-23
- 注册时间
- 2011-7-19
- 阅读权限
- 90
- 积分
- 81303
- 纳金币
- -1
- 精华
- 11
|
Think about what happens to a car in a sharp turn. [...] the part of the car on the outside of the turn gets pushed down toward the road and the part of the car on the inside of the turn rises up. In other words, the body of the car "rolls" 10 or 20 or 30 degrees toward the outside of the turn. If you take a turn fast enough, the tires on the inside of the turn actually rise off the road and the car flips over.
Sounds familiar?
Stabilizer bars "link" the two wheels of the same axle allowing a limited degree of freedom between them. When one of the wheels is pushed upwards, the stabilizer bar transfers a portion of that compression force to the other wheel, so its suspension compress as well. This limits the roll of the body's car at that axle.
If you don't have a stabilizer bar, you tend to have a lot of trouble with body roll in a turn. If you have too much stabilizer bar, you tend to lose independence between the suspension members on both sides of the car.
Q: I haven't heard of such bars! Are really so important?
A: Absolutely. Stabilizer bars are an essential part of a vehicle's suspension system in the same way as springs and dampers are.
Look under your car, observe the suspension behind the front wheels. You'll be able to easily identify a rigid bar that travels from one wheel's suspension to another. That's it. The only exceptions are a very few car models that use dynamic systems (ej. computer-controlled hydraulic systems) to actively emulate the behavior of the anti-roll bars in turns.
IMHO, an AntiRoll script for WheelColliders should be at least mentioned in the documentation and tutorials as a basic requirement for physically real vehicles. Actually, anti-roll bars are barely mentioned in the last chapter of the Unity's Car Tutorial (
http://unity3d.com/support/resources...s/car-tutorial
), where an alternate car physics model is proposed.
Q: What about all other solutions proposed here? (lower center of mass, angular drag, custom friction models...)
A: The essential requirements for having a car that physically feels like real include the anti-roll bars.
Once you have the REAL absolutely simple car (rigidbody + four wheel colliders + 2 anti-roll bars) you can then apply all other techniques to get special behaviors on your car and/or tweaking its handling, i.e for arcade-style driving.
Even with the real absolutely simple car you'll find a lot of options to tweak and play with, all of them affecting the handling and feel of the car: mass, REAL center of mass (typically moved towards the engine location), front-rear springs, front-rear dampers (must be different because the axle under the engine will support more weight), front-rear anti-roll bar stiffness...
No need for complicated custom friction/drag models at the beginning - leave them for final tweaks if necessary. You'll see how much the handling can change by simply adjusting the difference between the stiffness of the front and rear stabilizer bars.
Q: What's bad with lowering the center of mass?
A: Jumps, collisions, crashes or air-tricks will look weird because of the false center of mass.
Artificially lowering the center of mass is just a workaround that works under some circumstances, but fails at others. Having the REAL center of mass in the car, and making it stable by means of stabilizer bars, will make almost all situations behave like real.
Q: I've***n your demo and I've made the car flip in "Sport" mode!
A: Look at that kind of car. If you do a close turn at high speed with that car in real, surely you'd roll over as well!
If you are (like me) used to watch those "educative" documentaries at Discovery Channel "Road Rampage", "Destroyed in Seconds", and so on, you'll know how easily this kind of cars can roll over at relatively normal speeds. Also, you may have heard about "The moose test", which is a heavy "S" turn test performed at 80 Km/h (50 mph). Many actual cars failed that test (Google for "the moose test" or see
http://en.wikipedia.org/wiki/Moose
_
test
)
Note that in the demo the elevation of the center of mass is around the middle of the car's body! You must do a hard turn at around 60 Km/h (40 mph) for being able to flip the car in "Sport" mode. The anti-roll bars are doing an excellent work already.
|
|