Version: 2020.3
언어: 한국어

WheelCollider.ConfigureVehicleSubsteps

매뉴얼로 전환
public void ConfigureVehicleSubsteps (float speedThreshold, int stepsBelowThreshold, int stepsAboveThreshold);

파라미터

speedThreshold The speed threshold of the sub-stepping algorithm.
stepsBelowThreshold Amount of simulation sub-steps when vehicle's speed is below speedThreshold.
stepsAboveThreshold Amount of simulation sub-steps when vehicle's speed is above speedThreshold.

설명

Configure vehicle sub-stepping parameters.

Every time a fixed update happens, the vehicle simulation splits this fixed delta time into smaller sub-steps and calculates suspension and tire forces per each smaller delta. Then, it would sum up all resulting forces and torques, integrate them, and apply to the vehicle's body.

Using this function you can customize how many sub-steps will be performed by the simulation above and below the speed threshold.

It's enough to call this function only once per each vehicle, as it actually sets parameters to the vehicle but not to a wheel.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961