Browse Source

Merge branch 'ray' of git://github.com/gero3/three.js into dev

Mr.doob 13 years ago
parent
commit
34c348d4d9
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 ) );