Version: 2018.1

WheelFrictionCurve

struct in UnityEngine

マニュアルに切り替える

説明

車輪の摩擦特性を設定するために、WheelCollider オブジェクトによって使用されます。

The curve takes a measure of tire slip as an input and gives a force as output. The curve is approximated by a two-piece spline. The first section goes from (0,0) to (extremumSlip,extremumValue), at which point the curve's tangent is zero. The second section goes from (extremumSlip,extremumValue) to (asymptoteSlip,asymptoteValue), where curve's tangent is again zero:



Wheel collider computes friction separately from the rest of physics engine, using a slip based friction model. It separates the overall friction force into a "forwards" component (in the direction of rolling, and responsible for acceleration and braking) and "sideways" component (orthogonal to rolling, responsible for keeping the car oriented). Tire friction is described separately in these directions using WheelCollider.forwardFriction and WheelCollider.sidewaysFriction. In both directions it is first determined how much the tire is slipping (what is the speed difference between the rubber and the road). Then this slip value is used to find out tire force exerted on the contact.

The property of real tires is that for low slip they can exert high forces as the rubber compensates for the slip by stretching. Later when the slip gets really high, the forces are reduced as the tire starts to slide or spin. Thus tire friction curves have a shape like in the image above.

Because the friction for the tires is computed separately, the PhysicMaterial of the ground does not affect the wheels. Simulation of different road materials is done by changing the WheelCollider.forwardFriction and WheelCollider.sidewaysFriction of the wheel, based on what material the wheel is hitting.

See Also: WheelCollider, WheelCollider.forwardFriction, WheelCollider.sidewaysFriction.

変数

asymptoteSlip漸近線の座標の滑りを返す(デフォルトは 2 )
asymptoteValue漸近線の滑りの力を返す(デフォルトは 10000 )
extremumSlip極値点の滑りを返す(デフォルトは 1 )
extremumValue極値での滑りの力を返す(デフォルトは 20000 )
stiffnessextremumValue 変数と asymptoteValue 変数の乗算を返す(デフォルトは 1 )
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961