参考:
http://www.gotow.net/andrew/blog/?page_id=78
http://carpe.com.au/slawia/2009/08/unity-wheel-collider-part-1/
http://carpe.com.au/slawia/2009/08/unity-wheel-collider-part-2/
http://carpe.com.au/slawia/2009/08/unity-wheel-collider-part-3/
Step 1 : Importing the Game Object.
模型要有四个轮子作为子物体

Step 2 : Attaching the Physics Components
向车身添加一个rigidbody
创建一个名为"Colliders"的 empty game object,坐标为(0,0,0),在这个空物体下再创建一些包含有box collider的空物体,使这些box collider接近车身的形状。

再创建一个空物体WheelColliders,在其下在创建四个空物体,分别创建Physics/WheelCollider ,调整位置与车轮符合

Step 3 : Configuring the Physics Setup
设置三个属性:
- the vehicle mass 汽车质量 (参考值1600)
- the suspension spring and damping 悬挂的弹性和阻尼(参考值5500,50)
- the tire friction 轮胎摩擦(参考值0.092,0.022)
Step 4 : 编写代码
在编辑器中赋值
Unity汽车物理模拟
本文详细介绍如何在Unity中创建逼真的汽车物理模拟,包括导入带有轮子的游戏对象、配置刚体和碰撞体、设置物理参数以及编写控制脚本。





