Browse Source

Ray: Fixed direction test.

Mr.doob 5 years ago
parent
commit
685b272d14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/unit/src/math/Ray.tests.js

+ 1 - 1
test/unit/src/math/Ray.tests.js

@@ -27,7 +27,7 @@ export default QUnit.module( 'Maths', () => {
 
 			var a = new Ray();
 			assert.ok( a.origin.equals( zero3 ), "Passed!" );
-			assert.ok( a.direction.equals( zero3 ), "Passed!" );
+			assert.ok( a.direction.equals( new Vector3( 0, 0, - 1 ) ), "Passed!" );
 
 			var a = new Ray( two3.clone(), one3.clone() );
 			assert.ok( a.origin.equals( two3 ), "Passed!" );