WheelCollider.suspensionSpring 悬挂弹簧

var suspensionSpring : JointSpring

Description描述

The parameters of wheel's suspension. The suspension attempts to reach a target position by adding spring and damping forces.

车轮悬挂的参数。通过添加弹簧和阻尼力,悬挂试图达到目标位置。

The suspensionSpring.spring force attempts to reach the target position. A larger value makes the suspension reach the target position faster.

suspensionSpring.spring弹簧力试图达到目标位置。较大的值使悬挂试图更快达到目标位置。

The suspensionSpring.damper force dampens the suspension velocity. A larger value makes the suspension reach the goal slower.

suspensionSpring.damper阻尼力缓冲悬挂速度。较大的值使悬挂试图达到更慢目标位置。

The suspension tries to reach suspensionSpring.targetPosition, which is the rest length of the suspension along the suspensionDistance. Zero value maps to full extension along the suspension travel, a value of one maps to fully compressed suspension. Default value is zero, which matches the behavior of regular car's suspension.

悬挂试图达到目标位置(suspensionSpring.targetPosition),它是悬挂的剩余长度沿着suspensionDistance。0值代表沿着悬挂运动完全伸展,1值代表完全压缩的悬挂。默认值为0,匹配常规的轿车行为。

最后修改:2010年12月22日 Wednesday 21:19

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。