API reference

DistantCandidateComputer Class

This Candidate Computer uses DistantPointDetectorFrustums in order to find the best candidate.
Candidates must implement ICollidersRef in order to be detected by the frustums.

Properties

DetectionDelay : float
[Get][Set]
Signature
float Oculus.Interaction.DistantCandidateComputer< TInteractor, TInteractable >.DetectionDelay
DetectionFrustums : DistantPointDetectorFrustums
[Get][Set]
Signature
DistantPointDetectorFrustums Oculus.Interaction.DistantCandidateComputer< TInteractor, TInteractable >.DetectionFrustums
Origin : Pose
[Get]
Signature
virtual Pose Oculus.Interaction.DistantCandidateComputer< TInteractor, TInteractable >.Origin

Methods

ComputeCandidate ( registry , interactor , bestHitPoint )
Determines the best available interactable.
Signature
virtual TInteractable Oculus.Interaction.DistantCandidateComputer< TInteractor, TInteractable >.ComputeCandidate(InteractableRegistry< TInteractor, TInteractable > registry, TInteractor interactor, out Vector3 bestHitPoint)
Parameters
registry: InteractableRegistry< TInteractor, TInteractable >
interactor: TInteractor
bestHitPoint: out Vector3
Returns
TInteractable