Kaynağa Gözat

add setSource

libra guest 13 yıl önce
ebeveyn
işleme
115b31116b
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      src/core/Ray.js

+ 7 - 0
src/core/Ray.js

@@ -282,5 +282,12 @@
 		return intersects;
 		return intersects;
 
 
 	};
 	};
+    
+    THREE.Ray.prototype.setSource = function ( origin, direction){
+        
+        this.origin = origin;
+        this.direction = direction;
+        
+    }
 
 
 }( THREE ) );
 }( THREE ) );

粤ICP备19079148号