Skip to content

Commit

Permalink
Merge pull request #88 from mszarski/patch-2
Browse files Browse the repository at this point in the history
Change linePrecision on raycaster
  • Loading branch information
rctoris committed Dec 8, 2014
2 parents 6ed78bf + b44da73 commit 24287e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/visualization/interaction/MouseHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ ROS3D.MouseHandler.prototype.processDomEvent = function(domEvent) {
// use the THREE raycaster
var mouseRaycaster = new THREE.Raycaster(this.camera.position.clone(), vector.sub(
this.camera.position).normalize());
mouseRaycaster.linePrecision = 0.001;
var mouseRay = mouseRaycaster.ray;

// make our 3d mouse event
Expand Down

0 comments on commit 24287e0

Please sign in to comment.