Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
OpenXRSpatialComponentPolygon2DList
实验性: This class may be changed or removed in future versions.
继承: OpenXRSpatialComponentData < RefCounted < Object
用于存储查询 polygon2d 结果的对象。
描述
用于调用 OpenXRSpatialEntityExtension.query_snapshot() 时存储查询二维多边形结果数据的对象。
方法
get_transform(index: int) const |
|
get_vertices(snapshot: RID, index: int) const |
方法说明
Transform3D get_transform(index: int) const 🔗
返回用于定位该 index 处实体的多边形的变换。
PackedVector2Array get_vertices(snapshot: RID, index: int) const 🔗
返回该 index 处实体的多边形顶点。