WheelCollider.GetGroundHit 获取碰撞
function GetGroundHit (out hit : WheelHit) : bool
Description描述
Gets ground collision data for the wheel.
获取车轮的地面碰撞数据。
If the wheel collides with something, returns true and fills the hit structure. If the wheel is not colliding, returns false and leaves hit structure unchanged.
如果车轮碰撞到什么,返回真,并且充满碰撞结构,如果车轮没有碰撞,返回假并且保持碰撞结构不变。
The reported hit is always the closest one. Because the tire friction model does not automatically respond to other PhysicMaterials, any simulation of different ground materials must be done manually by adjusting forwardFriction and sidewaysFriction based on collider's material returned here.
报告的hit总是最接近的一个,因为轮胎摩擦力模型不自动影响其他PhysicMaterial(物理材质)。任何对不同地面材质的模拟必须基于这里所返回的碰撞器材质来手动调整 forwardFriction 和 sidewaysFriction完成。