Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ray setSource() to set()

  • Loading branch information...
commit 2d3ed545bd763b0662d023d2a0ea966c468689ab 1 parent 34c348d
@mrdoob authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 src/core/Ray.js
View
16 src/core/Ray.js
@@ -229,7 +229,7 @@
};
- var intersectDescendants= function ( object, ray, intersects ) {
+ var intersectDescendants = function ( object, ray, intersects ) {
var descendants = object.getDescendants();
@@ -243,6 +243,13 @@
//
THREE.Ray.prototype.precision = 0.0001;
+
+ THREE.Ray.prototype.set = function ( origin, direction){
+
+ this.origin = origin;
+ this.direction = direction;
+
+ };
THREE.Ray.prototype.intersectObject = function ( object, recursive ) {
@@ -282,12 +289,5 @@
return intersects;
};
-
- THREE.Ray.prototype.setSource = function ( origin, direction){
-
- this.origin = origin;
- this.direction = direction;
-
- }
}( THREE ) );
Please sign in to comment.
Something went wrong with that request. Please try again.