Skip to content

Commit

Permalink
Examples: Added floor clipping to webxr_xr_dragging.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 13, 2023
1 parent 2e61a8a commit 724b00b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/webxr_xr_dragging.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@

document.body.appendChild( XRButton.createButton( renderer ) );

// clipping

const floorClipping = new THREE.Plane( new THREE.Vector3( 0, 1, 0 ) );
renderer.clippingPlanes = [ floorClipping ];

// controllers

controller1 = renderer.xr.getController( 0 );
Expand Down

0 comments on commit 724b00b

Please sign in to comment.