简单碰撞器是 Unity 中计算效率最高的 碰撞器一种用于处理物体物理碰撞的无形形状。碰撞器不需要与物体的网格完全相同形状 - 大致的近似通常更有效,并且在游戏过程中难以区分。 更多信息
查看 术语表 类型。它们被称为“简单”是因为它们由简单的几何形状定义,例如方盒、球体和胶囊。它们与 简单物体 匹配,这些物体是内置的 游戏物体Unity 场景中的基本物体,可以代表角色、道具、场景、相机、路径点等等。游戏物体的功能由附加在其上的组件定义。 更多信息
查看 术语表 形状。
Unity 中有三种简单碰撞器形状
简单碰撞器效率很高,但它们也有局限性。例如,您无法更改或变形它们的形状,只能更改它们的比例。与 网格Unity 的主要图形原语。网格构成 3D 世界的大部分。Unity 支持三角形或四边形多边形网格。Nurbs、Nurms、Subdiv 表面必须转换为多边形。 更多信息
查看 术语表 碰撞器不同,它们不是由三角形组成的;它们的形状是固定的(请注意,物理调试可视化 确实在简单碰撞器上指示了一个基于三角形的网格,但这些仅用于可视化目的,并不反映碰撞器的构造)。
简单碰撞器通常不是复杂形状、车轮或 地形场景中的地形。地形游戏物体会在场景中添加一个大的平面,您可以使用地形的检查器窗口创建详细的地形。 更多信息
查看 术语表 碰撞的最佳选择。Unity 提供了针对更复杂碰撞器形状的特定碰撞器(请参阅 网格碰撞器一个自由形式的碰撞器组件,它接受一个网格引用来定义其碰撞表面形状。 更多信息
查看 术语表、地形碰撞器一个地形形状的碰撞器组件,用于处理与附着在其上的地形物体具有相同形状的碰撞表面。 更多信息
查看 术语表 以及 车轮碰撞器一个专用于地面车辆的特殊碰撞器。它内置了碰撞检测、车轮物理和基于滑动的轮胎摩擦模型。它可以用于车轮以外的物体,但它是专门为有车轮的车辆设计的。 更多信息
查看 术语表)。但是,如果您需要一个适合复杂形状但不需要过于精确的碰撞器形状,您可以使用简单碰撞器来创建一个 复合碰撞器。复合碰撞器是简单碰撞器的集合,以一种适合您需要的碰撞器形状的排列方式排列。
总之,简单碰撞器是在 Unity 中向物体添加 碰撞检测Unity 执行的一个自动过程,用于确定具有刚体和碰撞器组件的移动游戏物体是否与任何其他碰撞器接触。 更多信息
查看 术语表 的一种高效但有时不准确的方法。它们适合具有规则形状的简单形状的游戏物体。但是,对于具有不规则形状的更复杂物体,或对于更精确的碰撞检测,您应该使用更复杂的碰撞器形状。
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.