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.

OpenXRSpatialComponentBounded2DList

實驗性: This class may be changed or removed in future versions.

繼承: OpenXRSpatialComponentData < RefCounted < Object

用於儲存查詢 bounded2d 結果資料的物件。

說明

用於儲存呼叫 OpenXRSpatialEntityExtension.query_snapshot() 時查詢二維邊界矩形結果資料的物件。

方法

Transform3D

get_center_pose(index: int) const

Vector2

get_size(index: int) const


方法說明

Transform3D get_center_pose(index: int) const 🔗

回傳位於該 index 處實體的邊界矩形的中心點。


Vector2 get_size(index: int) const 🔗

回傳該 index 處實體的邊界矩形的大小。