Version: 2022.2
言語: 日本語

説明

Use multiple edges to interpret the PhysicsShape2D geometry.

An edge geometry type is comprised of an unlimited quantity of vertices in the PhysicsShape2D and a PhysicsShape2D.radius. The vertices represent the consecutive edges where each vertex connects to the next vertex. These edges represent an open shape with no interior even if the first and last vertices overlap. The PhysicsShape2D.radius is the radius of all edges. (Edges with a radius of zero become infinitely thin edges while a radius greater than zero results in capsule shaped edges i.e. any edge with a radius.)

Edges also have an PhysicsShape2D.adjacentStart and PhysicsShape2D.adjacentEnd feature allowing separate edge shapes to be joined.

NOTE: You should ensure that edges do not self-intersect as this can produce incorrect collision responses. As checking self-intersection has a runtime cost, this constraint is not validated and so you should ensure this does not occur.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961