File: XRPlanes.md | Updated: 11/15/2025
A utility class for the WebXR Plane Detection Module. If planes are detected by WebXR, this class will automatically add them as thin box meshes to the scene when below code snippet is used.
const planes = new XRPlanes( renderer );
scene.add( planes );
XRPlanes is an addon, and must be imported explicitly, see Installation#Addons.
import { XRPlanes } from 'three/addons/webxr/XRPlanes.js';
Constructs a new XR plane container.
renderer | The renderer.
---|---