Browse Source

Minor ArrowHelper Change

WestLangley 12 năm trước cách đây
mục cha
commit
5748005302
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/extras/helpers/ArrowHelper.js

+ 2 - 2
src/extras/helpers/ArrowHelper.js

@@ -56,11 +56,11 @@ THREE.ArrowHelper.prototype.setDirection = function () {
 
 		// dir is assumed to be normalized
 
-		if ( dir.y > 0.999 ) {
+		if ( dir.y > 0.99999 ) {
 
 			this.quaternion.set( 0, 0, 0, 1 );
 
-		} else if ( dir.y < - 0.999 ) {
+		} else if ( dir.y < - 0.99999 ) {
 
 			this.quaternion.set( 1, 0, 0, 0 );