Version: 2019.1
Experimental: this API is experimental and might be changed or removed in the future.

BoundedPlane.GetCorners

マニュアルに切り替える
public void GetCorners (out Vector3 p0, out Vector3 p1, out Vector3 p2, out Vector3 p3);

パラメーター

p0The vertex of the first corner.
p1The vertex of the second corner.
p2The vertex of the third corner.
p3The vertex of the fourth corner.

説明

Outputs four points, in device space, representing the four corners of the plane. The corners are in clockwise order.

"Clockwise" winding means the plane's four vertices p0, p1, p2, and p3 rotate clockwise around the plane's center. Viewing the plane from a perspective where the vertices appear in this order would be considered the "front" of the plane. The cross product Vector3.Cross(p1 - p0, p3 - p0) will be in the same direction as BoundedPlane.Normal.

Meshes also use clockwise winding.

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