API

Interface IWebXRPlane

A babylon interface for a WebXR plane. A Plane is actually a polygon, built from N points in space

Supported in chrome 79, not supported in canary 81 ATM

interface IWebXRPlane {
    id: number;
    polygonDefinition: Vector3[];
    semanticLabel?: string | null;
    transformationMatrix: Matrix;
    xrPlane: XRPlane;
}
Index
id: number

a babylon-assigned ID for this polygon

polygonDefinition: Vector3[]

an array of vector3 points in babylon space. right/left hand system is taken into account.

semanticLabel?: string | null

The semantic classification supplied by the XR runtime. This is undefined when the runtime does not expose semantic labels and null when the plane has no known classification.

transformationMatrix: Matrix

A transformation matrix to apply on the mesh that will be built using the polygonDefinition Local vs. World are decided if worldParentNode was provided or not in the options when constructing the module

xrPlane: XRPlane

the native xr-plane object