From 935e0898c983f17f1686d6547e664a2380097a9b Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Tue, 10 Dec 2024 14:49:23 +0000 Subject: [PATCH] disable headrotation for hrefs --- src/3rd/js/three/xrf/pos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/3rd/js/three/xrf/pos.js b/src/3rd/js/three/xrf/pos.js index d54fcc1..cb0e1ce 100644 --- a/src/3rd/js/three/xrf/pos.js +++ b/src/3rd/js/three/xrf/pos.js @@ -8,8 +8,8 @@ xrf.frag.pos = function(v, opts){ if( !obj ) return console.warn("#pos="+v.string+" not found") obj.add(camera) // follow animation of targeted position camera.position.set(0,0,0) - let c = camera.rotation - c.set( c.x, obj.rotation.y, c.z ) + //let c = camera.rotation + //c.set( c.x, obj.rotation.y, c.z ) }else{ // spec: direct coordinate: https://xrfragment.org/#navigating%203D