Object rotation using the Device Orientation Controls in Three.js
问题 I am making my first steps coding with JavaScript and playing with Three.js. I am experimenting with this example from threejs.org :http://threejs.org/examples/#misc_controls_deviceorientation and this is the code that they have: (function() { "use strict"; window.addEventListener('load', function() { var container, camera, scene, renderer, controls, geometry, mesh; var animate = function(){ window.requestAnimationFrame( animate ); controls.update(); renderer.render(scene, camera); };