Explorar el Código

Fixed webvr_rollercoaster orientation.

Mr.doob hace 9 años
padre
commit
1d5ebd3977
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/webvr_rollercoaster.html

+ 1 - 1
examples/webvr_rollercoaster.html

@@ -229,7 +229,7 @@
 				velocity -= tangent.y * 0.0000015;
 				velocity = Math.max( velocity, 0.00004 );
 
-				train.lookAt( lookAt.copy( position ).add( tangent ) );
+				train.lookAt( lookAt.copy( position ).sub( tangent ) );
 
 				//