You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| enabled | Whether raycaster is actively checking for intersections. | true |
66
66
| far | Maximum distance under which resulting entities are returned. Cannot be lower than `near`. | Infinity |
67
67
| interval | Number of milliseconds to wait in between each intersection test. Lower number is better for faster updates. Higher number is better for performance. Intersection tests are performed at most once per frame. | 0 |
68
-
| lineColor | Raycaster line color if showLine is enabled. | white |
69
-
| near | Minimum distance over which resuilting entities are returned. Cannot be lower than 0. | 0 |
68
+
| lineColor | Raycaster line color if showLine is enabled. | white |
69
+
| lineOpacity | Raycaster line opacity if showLine is enabled. | white |
70
+
| near | Minimum distance over which resulting entities are returned. Cannot be lower than 0. | 0 |
70
71
| objects | Query selector to pick which objects to test for intersection. If not specified, all entities will be tested. Note that only objects attached via `.setObject3D` and their recursive children will be tested. | null |
71
72
| origin | Vector3 coordinate of where the ray should originate from relative to the entity's origin. | 0, 0, 0 |
72
73
| showLine | Whether or not to display the raycaster visually with the [line component][line]. | false |
@@ -205,11 +206,10 @@ mutations (e.g., some entity changes its `class`).
205
206
206
207
If `showLine` is set to `true`, the raycaster will configure the line given the
207
208
raycaster's `origin`, `direction`, and `far` properties. To customize the line
208
-
appearance provided by the `showLine: true` property, we configure the [line
209
-
component][line]:
209
+
appearance provided by the `showLine: true` property, we can use the `lineColor` and `lineOpacity`:
0 commit comments