返回介绍

WheelCollider.forceAppPointDistance 着力点距离

发布于 2019-12-18 15:38:46 字数 2134 浏览 1185 评论 0 收藏 0

JavaScript => public var forceAppPointDistance: float;
C# => public float forceAppPointDistance;

Description 描述

Application point of the suspension and tire forces measured from the base of the resting wheel.

从基本静止车轮测量的悬挂和轮胎的着力点。

This is specified as a distance along the local up vector of the vehicle's rigid body from the base of the wheel at its rest coordinate (the rest coordinate of the wheel is determined by the value WheelCollider.spring.targetPosition). This parameter simulates the effective roll center of the suspension geometry. For a standard family car the value of forceAppPointDistance should be tuned to place the application point approximately 0.3m below the rigid body center of mass. Moving the application point downwards introduces more roll when cornering, while moving it upwards results in less roll when cornering. The force application point is typically below the rigid body center of mass.

该属性作为从基本车轮静止坐标,沿车辆刚体Y轴向量的距离(车轮的静止坐标由WheelCollider.spring.targetPosition的值确定)。此参数模拟悬挂几何结构的有效辊轴中心。对于一辆标准的家庭轿车forceAppPointDistance的值,应该放在刚体质心下着力点约0.3m处。当转弯时,移动着力点向下引起更多滚动,而移动着力点向上导致更少滚动。着力点通常在刚体质心下方。

Please note that having this parameter equal to zero could be undesirable as it contributes to simulation instability in certain configurations. Once you observe your vehicle failing to go asleep resting on flat surface, exhibiting jittering behavior or drifting along the surface when no user input is applied, check the forceAppPointDistance values. In the editor, when a WheelCollider game object is selected, there is a green spherical gizmo displayed to show where the force application point is at the moment. Try increasing forceAppPointDistance value gradually, until you're satisfied with the result.

请注意,该参数等于0是不可取的,会导致在某些配置仿真不稳定。一旦发现当没有用户输入时,你的车走在平坦的表面失灵了,沿着干该表面表现出抖动的或漂移的行为,检查forceAppPointDistance的值。在编辑器,当轮碰撞器对象被选择,此刻着力点会显示为绿色的辅助球。试着逐渐增加forceAppPointDistance的值,直到有满意的结果。

WheelCollider

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文