xrfragment/src/3rd/three/xrf/rot.js

6 lines
225 B
JavaScript

xrf.frag.rot = function(v, opts){
let { mesh, model, camera, scene, renderer, THREE} = opts
camera.rotation.x = v.x * Math.PI / 180;
camera.rotation.y = v.y * Math.PI / 180;
camera.rotation.z = v.z * Math.PI / 180;
}