Protected
_currentProtected
cameraProtected
interactionReadonly
targetingthe hit information InteractableHitInfo for the current interactable or null if there was no hit
end position in world space
origin position in world space
Set the _currentInteractableHitInfo to null, used when an Interactable is deleted from Lens Studio, to keep state in sync
Protected
deleteDestroys the provider
Static
getlist of RayCastHit
targeting mode used to filter hits
function that is used to get the interactable associated to the collider (to enable the method to be static)
offset value that defines if the raycast was offset from the start point
camera used to verify FoV
whether interactions that are out of the camera's field of view are allowed
the hit corresponding to the target from the list of hits
Protected
getStatic
getThe nearest deeply nested interactable, is the latest descendant of a list of interactables, when they are ordered by distance.
list of hits
whether the provider has found a target or not
whether the TargetProvider is intersecting with the Interactable
Can be used to reset inner states Should be called when the hand is not tracked or targeting is blocked
Recomputes the target
Protected
update
This class provides indirect targeting functionality using raycasting and spherecasting. It extends the TargetProvider class and uses a configuration object for initialization.