Skip to content

Commit

Permalink
Migrate from deprecated LinePrecision
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Jun 11, 2024
1 parent 927087f commit d1af452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/visualization/interaction/MouseHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ROS3D.MouseHandler.prototype.processDomEvent = function(domEvent) {
var mousePos = new THREE.Vector2(deviceX, deviceY);

var mouseRaycaster = new THREE.Raycaster();
mouseRaycaster.linePrecision = 0.001;
mouseRaycaster.params.Line.threshold = 0.001;
mouseRaycaster.setFromCamera(mousePos, this.camera);
var mouseRay = mouseRaycaster.ray;

Expand Down

0 comments on commit d1af452

Please sign in to comment.