disable headrotation for hrefs

This commit is contained in:
Leon van Kammen 2024-12-10 14:49:23 +00:00
parent 9a13746c1c
commit 935e0898c9
1 changed files with 2 additions and 2 deletions

View File

@ -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