By default, raycaster has a threshold of 1m for detecting intersection with a point or line.

The raycaster-thresholds component provide more flexibility for A-Frame applications.


When raycaster-threshold is not used, raycaster default of 1m is used, and the box will be hidden whenever the cursor is anywhere near or inside it.

When raycaster-thresholds is specified, raycaster-thresholds default of 0.01m is used, and the box will be hidden only when the cursor is on the line

Although not shown in this basic example, the "line" and "points" properties of raycaster-threshold can be used to set any desired threshold for raycasting against lines and points.

view code