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

7 lines
231 B
JavaScript
Raw Normal View History

2023-05-09 17:42:29 +02:00
xrfragment.xrf.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;
}