提交 165eea34 编写于 作者: M Mr.doob

Removed useQuaternion calls from examples.

上级 e3dab8ef
......@@ -7,14 +7,13 @@
*/
THREE.OculusControls = function ( object ) {
this.object = object;
this.target = new THREE.Vector3( 0, 0, 0 );
this.headquat = new THREE.Quaternion();
this.freeze = false;
this.object.useQuaternion = true;
this.loadAjaxJSON = function ( url, callback ) {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
......
......@@ -68,14 +68,13 @@
perlin = new ImprovedNoise();
camera = new THREE.PerspectiveCamera( 90, window.innerWidth / window.innerHeight, 1, 5000 );
camera.useQuaternion = true;
camera.position.x = 200;
camera.position.y = 250;
camera.position.z = -200;
scene = new THREE.Scene();
effect = new THREE.OculusRiftEffect( renderer, {worldScale: 1} );
effect = new THREE.OculusRiftEffect( renderer, { worldScale: 1 } );
effect.setSize( window.innerWidth, window.innerHeight );
controls = new THREE.FirstPersonControls( camera );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册