Pārlūkot izejas kodu

Fixed webvr_rollercoaster orientation.

Mr.doob 9 gadi atpakaļ
vecāks
revīzija
1d5ebd3977
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      examples/webvr_rollercoaster.html

+ 1 - 1
examples/webvr_rollercoaster.html

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