API reference
OpenXRSpatialComponentPolygon2DList
Inherits: OpenXRSpatialComponentData < Shared < Object
Object for storing the queries polygon2d result data.
Description
Section titled “Description”Object for storing the queries 2D polygon result data when calling OpenXRSpatialEntityExtension.query_snapshot().
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| Transform3D | get_transform(index) |
[]Vector2 | get_vertices(snapshot, index) |
Method descriptions
Section titled “Method descriptions”get_transform
Section titled “get_transform”Transform3D get_transform(index: int) const
Returns the transform for positioning our polygon for the entity at this index.
get_vertices
Section titled “get_vertices”[]Vector2 get_vertices(snapshot: RID, index: int) const
Returns the polygon vertices for the entity at this index.