OptionalcamOptionallayerraw layer mask, use setLayer to set an individual layer active
OptionallineOptionalmaxSet the raycaster far distance:
The far factor of the raycaster. This value indicates which objects can be discarded based on the distance. This value shouldn't be negative and should be larger than the near property.
OptionalminSet the raycaster near distance:
The near factor of the raycaster. This value indicates which objects can be discarded based on the distance. This value shouldn't be negative and should be smaller than the far property.
OptionalpreciseIf true, the raycaster will use a more precise method to test for intersections. This is slower but more accurate.
OptionalrayOptional ray that can be used for raycasting
OptionalraycasterOptionally a custom raycaster can be provided. Other properties will then be set on this raycaster
OptionalrecursiveIf true, the raycaster will traverse the scene recursively.
OptionalresultsRaycast results array. You can provide an array here to avoid creating a new one (note that if your array already contains items they will be removed)
OptionalscreenPoint on screen in raycast space / normalized device coordinates (-1 to 1).
OptionaltargetsObjects to raycast against. If no target array is provided the whole scene will be raycasted
OptionaltestOptional calback function to be called per object before tested for intersections.
This can be used to filter objects.
Return false to ignore the object completely or "continue in children" to skip the object but continue to traverse its children (if you do raycast with recursive enabled)
OptionaluseUse MeshBVH for raycasting. This is faster than the default threejs raycaster but uses more memory.
The camera to use for the raycaster