Class: DetectedPlane
Defined in: src/world/planes/DetectedPlane.ts:9
Represents a single detected plane in the XR environment. It's a THREE.Mesh that also holds metadata about the plane's properties. Note: This requires chrome://flags/#openxr-spatial-entities to be enabled.
Extends
Constructors
Constructor
new DetectedPlane(
xrPlane,material,simulatorPlane?):DetectedPlane
Defined in: src/world/planes/DetectedPlane.ts:25
Parameters
xrPlane
The plane object from the WebXR API.
null | XRPlane
material
The material for the mesh.
simulatorPlane?
Returns
DetectedPlane
Overrides
THREE.Mesh.constructor
Properties
label?
optionallabel:string
Defined in: src/world/planes/DetectedPlane.ts:14
A semantic label for the plane (e.g., 'floor', 'wall', 'ceiling', 'table'). Since xrPlane.semanticLabel is readonly, this allows user authoring.
orientation?
optionalorientation:XRPlaneOrientation
Defined in: src/world/planes/DetectedPlane.ts:19
The orientation of the plane ('Horizontal' or 'Vertical').
simulatorPlane?
optionalsimulatorPlane:SimulatorPlane
Defined in: src/world/planes/DetectedPlane.ts:28
xrPlane
xrPlane:
null|XRPlane
Defined in: src/world/planes/DetectedPlane.ts:26
The plane object from the WebXR API.