Browse Source

Fixed webvr_rollercoaster orientation.

Mr.doob 9 years ago
parent
commit
1d5ebd3977
1 changed files with 1 additions and 1 deletions
  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 ) );
 
 				//