从静止车轮的底部测量的悬架和轮胎力的作用点。
这被指定为车辆刚体的本地向上矢量距离车轮底部的静止坐标的距离(车轮的静止坐标由值 WheelCollider.spring.targetPosition 确定)。该参数模拟悬架几何形状的实际侧倾中心。对于标准家用汽车,应调整 forceAppPointDistance 的值,以使作用点位于刚体质心下方约 0.3m 处。向下移动作用点会在转弯时引入更多侧倾,向上移动作用点则会减少转弯时的侧倾。力的作用点通常低于刚体质心。
请注意,最好不要将该参数设置为零,因为这会导致模拟在某些配置下不稳定。如果您观察到车辆在平坦表面上无法进入“睡眠”状态(表现出抖动行为或在无用户输入时沿表面漂移),请检查 forceAppPointDistance 值。在 Editor 中,当选择 WheelCollider 游戏对象时,会显示一个绿色球形辅助图标,以标示此时力施加点的位置。尝试逐渐增大 forceAppPointDistance 值,直到您对结果满意为止。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.