使用此 关节一种物理组件,允许刚体组件之间建立动态连接,通常允许某种程度的运动,例如铰链。 更多信息
参见 术语表 滑块 游戏对象Unity 场景中的基本对象,可以表示角色、道具、场景、摄像机、路径点等。游戏对象的功 能由附加在其上的组件定义。 更多信息
参见 术语表 通过维持可配置线上两个点的 位置来实现,该线延伸到无限远。这两个点可以是两个 **Rigidbody2D** 组件,也可以是一个 **Rigidbody2D** 组件和世界中的固定位置(通过将 **连接的刚体** 设置为 **无**)。
关节对两个连接的 刚体允许游戏对象受模拟重力和其它力的影响的组件。 更多信息
参见 术语表 对象施加线性力,以使其保持在线上。它还有一个模拟线性马达,施加线性力以沿线移动刚体游戏对象。您可以打开或关闭马达。虽然线是无限的,但您可以使用 **平移限制** 选项指定要使用的线的某一部分。
此关节具有三个同时约束。所有约束都是可选的。
您可以使用此关节构建需要像在线上连接在一起一样做出反应的物理对象。例如:
SliderJoint2D
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.