Explorar o código

Merge pull request #11218 from Mugen87/dev

Examples: Fix webvr_rollercoaster
Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
f143e871e6
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      examples/webvr_rollercoaster.html

+ 1 - 2
examples/webvr_rollercoaster.html

@@ -55,7 +55,6 @@
 			scene.add( train );
 
 			var camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 0.1, 500 );
-			camera.rotation.y = Math.PI;
 			train.add( camera );
 
 			// environment
@@ -246,7 +245,7 @@
 				velocity -= tangent.y * 0.0000001 * delta;
 				velocity = Math.max( 0.00004, Math.min( 0.0002, velocity ) );
 
-				train.lookAt( lookAt.copy( position ).add( tangent ) );
+				train.lookAt( lookAt.copy( position ).sub( tangent ) );
 
 				//