Browse Source

add setSource

libra guest 13 years ago
parent
commit
115b31116b
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/core/Ray.js

+ 7 - 0
src/core/Ray.js

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