How to use the PointerLockControls function from three

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

175
176
177
178
179
180
181
182
183
184

controlElement.requestPointerLock = controlElement.requestPointerLock || controlElement.mozRequestPointerLock || controlElement.webkitRequestPointerLock;

controlMode = 'pointer';

controls = new THREE.PointerLockControls(threeEnv.camera);

var pointerObject = controls.getObject();
// pointerObject.position.z = 500;
// camera.params.zReset = 0;
fork icon0
star icon4
watch icon2

93
94
95
96
97
98

  this.connect();
};

THREE.PointerLockControls.prototype = Object.create(THREE.EventDispatcher.prototype);
THREE.PointerLockControls.prototype.constructor = THREE.PointerLockControls;
fork icon0
star icon0
watch icon2

+ 3 other calls in file

Other functions in three

Sorted by popularity

function icon

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