WheelCollider 车轮碰撞器

Inherits from Collider

A special collider for vehicle wheels.

用于车轮的特殊碰撞器。

Wheel collider is used to model vehicle wheels. It simulates a spring and damper suspension setup, and uses a slip based tire friction model to calculate wheel contact forces.

轮子碰撞器用于车轮模型。它模拟弹簧和阻尼悬挂装置,并使用一个基于滑动轮胎摩擦力模型计算车轮接触力。

Wheel's collision detection is performed by casting a ray from center downwards the local y-axis. The wheel has a radius and can extend downwards by suspensionDistance amount.

车轮的碰撞检测是由从自身y轴中心向下投射射线。车轮有一个半径和可以向下延长的suspensionDistance数。

The wheel is controlled with motorTorque, brakeTorque and steerAngle properties.

车轮是由motorTorque, brakeTorquesteerAngle属性控制。

Wheel collider computes friction separately from the rest of physics engine, using a slip based friction model. This allows for more realistic behaviour, but makes wheel colliders ignore standard PhysicMaterial settings. Simulation of different road materials is done by changing the forwardFriction and sidewaysFriction based on what material the wheel is hitting. See Also: GetGroundHit and WheelFrictionCurve.

车轮碰撞器使用不同于物理引擎的一个基于滑动的摩擦力模型来计算摩擦力。这允许更加真实的行为。而且使车轮忽略标准的PhysicMaterial设置。通过改变车轮所碰到的forwardFrictionsidewaysFriction来模拟不同的道路材质。

参见:GetGroundHitWheelFrictionCurve

Variables变量

Functions函数

Inherited members继承成员

Inherited Variables继承变量

Inherited Functions继承函数