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
| autoRefresh | Whether to automatically refresh raycaster's list of objects to test for intersection using mutation observers to detect added or removed entities and components. | true |
56
-
| direction | Vector3 coordinate of which direction the ray should point from relative to the entity's origin. | 0, 0, -1|
57
-
| enabled | Whether raycaster is actively checking for intersections. | true |
58
-
| far | Maximum distance under which resulting entities are returned. Cannot be lower than `near`. | Infinity |
59
-
| 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 |
60
-
| near | Minimum distance over which resuilting entities are returned. Cannot be lower than 0. | 0 |
61
-
| objects | Query selector to pick which objects to test for intersection. If not specified, all entities will be tested. | null |
62
-
| origin | Vector3 coordinate of where the ray should originate from relative to the entity's origin. | 0, 0, 0 |
63
-
| recursive | Checks all children of objects if set. Else only checks intersections with root objects. | true |
64
-
| showLine | Whether or not to display the raycaster visually with the [line component][line]. | false |
65
-
| useWorldCoordinates | Whether the raycaster origin and direction properties are specified in world coordinates. | false |
53
+
| Property | Description | Default Value |
54
+
| -------- | ----------- | ------------- |
55
+
| autoRefresh | Whether to automatically refresh raycaster's list of objects to test for intersection using mutation observers to detect added or removed entities and components. | true |
56
+
| direction | Vector3 coordinate of which direction the ray should point from relative to the entity's origin. | 0, 0, -1 |
57
+
| enabled | Whether raycaster is actively checking for intersections. | true |
58
+
| far | Maximum distance under which resulting entities are returned. Cannot be lower than `near`. | Infinity |
59
+
| 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|
60
+
| near | Minimum distance over which resuilting entities are returned. Cannot be lower than 0. | 0 |
61
+
| 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` will be tested.| null |
62
+
| origin | Vector3 coordinate of where the ray should originate from relative to the entity's origin. | 0, 0, 0 |
63
+
| recursive | Checks children of objects if set. Else only checks intersections with root objects. Note that only objects attached via `setObject3D` are tested.| true |
64
+
| showLine | Whether or not to display the raycaster visually with the [line component][line]. | false |
65
+
| useWorldCoordinates | Whether the raycaster origin and direction properties are specified in world coordinates. | false |
0 commit comments