瀏覽代碼

Ray: Fixed direction test.

Mr.doob 5 年之前
父節點
當前提交
685b272d14
共有 1 個文件被更改,包括 1 次插入1 次删除
  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!" );