How to use the DeviceOrientationControls function from three

Find comprehensive JavaScript three.DeviceOrientationControls code examples handpicked from public code repositorys.

131
132
133
134
135
136
137
138

        this.connect();

};

const ThreeDeviceOrientationControls = THREE.DeviceOrientationControls;

export default ThreeDeviceOrientationControls;
fork icon4
star icon9
watch icon5

67
68
69
70
71
72
73
74
75
76


// var effect = new THREE.VREffect( threeEnv.renderer );


// var controls = new THREE.DeviceOrientationControls(threeEnv.camera);
//var WebVRManager = require('./webvr-manager');
//var composers = require('./composers');

//var manager = new WebVRManager(threeEnv.renderer, effect);
fork icon0
star icon4
watch icon2

16
17
18
19
20
21
22
23
24
25
if (THREE.Cache) {
  THREE.Cache.enabled = true;
}

// TODO: Eventually include these only if they are needed by a component.
require('../../vendor/DeviceOrientationControls'); // THREE.DeviceOrientationControls
require('three/examples/js/loaders/DRACOLoader');  // THREE.DRACOLoader
require('three/examples/js/loaders/GLTFLoader');  // THREE.GLTFLoader
require('three/examples/js/loaders/OBJLoader');  // THREE.OBJLoader
require('three/examples/js/loaders/MTLLoader');  // THREE.MTLLoader
fork icon0
star icon0
watch icon0

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)