Skip to content

Commit

Permalink
Example: Orient objects normal to hittest in webxr_ar_hittest (#23573)
Browse files Browse the repository at this point in the history
* Orient objects normal to hittest in example

* Update webxr_ar_hittest.html

Co-authored-by: mrdoob <info@mrdoob.com>
  • Loading branch information
nosy-b and mrdoob authored Feb 24, 2022
1 parent f51dd8a commit a7863bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/webxr_ar_hittest.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@

const material = new THREE.MeshPhongMaterial( { color: 0xffffff * Math.random() } );
const mesh = new THREE.Mesh( geometry, material );
mesh.position.setFromMatrixPosition( reticle.matrix );
reticle.matrix.decompose( mesh.position, mesh.quaternion, mesh.scale );
mesh.scale.y = Math.random() * 2 + 1;
scene.add( mesh );

Expand Down

0 comments on commit a7863bd

Please sign in to comment.