瀏覽代碼

Removed useQuaternion calls from examples.

Mr.doob 12 年之前
父節點
當前提交
165eea3429
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1 2
      examples/js/controls/OculusControls.js
  2. 1 2
      examples/misc_controls_oculusrift.html

+ 1 - 2
examples/js/controls/OculusControls.js

@@ -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 () {

+ 1 - 2
examples/misc_controls_oculusrift.html

@@ -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 );