disable headrotation for hrefs
This commit is contained in:
parent
9a13746c1c
commit
935e0898c9
|
@ -8,8 +8,8 @@ xrf.frag.pos = function(v, opts){
|
||||||
if( !obj ) return console.warn("#pos="+v.string+" not found")
|
if( !obj ) return console.warn("#pos="+v.string+" not found")
|
||||||
obj.add(camera) // follow animation of targeted position
|
obj.add(camera) // follow animation of targeted position
|
||||||
camera.position.set(0,0,0)
|
camera.position.set(0,0,0)
|
||||||
let c = camera.rotation
|
//let c = camera.rotation
|
||||||
c.set( c.x, obj.rotation.y, c.z )
|
//c.set( c.x, obj.rotation.y, c.z )
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
// spec: direct coordinate: https://xrfragment.org/#navigating%203D
|
// spec: direct coordinate: https://xrfragment.org/#navigating%203D
|
||||||
|
|
Loading…
Reference in New Issue