API reference
API reference
Select your platform
No SDKs available
No versions available

DistanceGrabInteractor Class

DistanceGrabInteractor lets you grab interactables at a distance with controllers and will move them using configurable IMovements.
It uses a IDistantCandidateComputer in order to Hover the best candidate.

Properties

DistanceInteractable : IRelativeToRef
[Get]
A reference to the main Transform of the current Interactable.
Signature
IRelativeToRef Oculus.Interaction.DistanceGrabInteractor.DistanceInteractable
HitPoint : Vector3
[Get]
The hitpoint of your controller's frustrum.
Signature
Vector3 Oculus.Interaction.DistanceGrabInteractor.HitPoint
Origin : Pose
[Get]
The origin of the frustrums used by <cref="DistantCandidateComputer" />.
Signature
Pose Oculus.Interaction.DistanceGrabInteractor.Origin
VelocityCalculator : IThrowVelocityCalculator
[Get][Set]
Signature
IThrowVelocityCalculator Oculus.Interaction.DistanceGrabInteractor.VelocityCalculator

Protected Methods

Awake ()
Signature
override void Oculus.Interaction.DistanceGrabInteractor.Awake()
Returns
override void
ComputeCandidate ()
Signature
override DistanceGrabInteractable Oculus.Interaction.DistanceGrabInteractor.ComputeCandidate()
Returns
override DistanceGrabInteractable
ComputePointerPose ()
Signature
override Pose Oculus.Interaction.DistanceGrabInteractor.ComputePointerPose()
Returns
override Pose
DoPreprocess ()
Signature
override void Oculus.Interaction.DistanceGrabInteractor.DoPreprocess()
Returns
override void
DoSelectUpdate ()
Signature
override void Oculus.Interaction.DistanceGrabInteractor.DoSelectUpdate()
Returns
override void
InteractableSelected ( interactable )
Signature
override void Oculus.Interaction.DistanceGrabInteractor.InteractableSelected(DistanceGrabInteractable interactable)
Parameters
Returns
override void
InteractableUnselected ( interactable )
Signature
override void Oculus.Interaction.DistanceGrabInteractor.InteractableUnselected(DistanceGrabInteractable interactable)
Parameters
Returns
override void
Start ()
Signature
override void Oculus.Interaction.DistanceGrabInteractor.Start()
Returns
override void

Methods

InjectAllDistanceGrabInteractor ( selector , distantCandidateComputer )
Adds a <cref="DistanceGrabInteractor"/> to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractor.InjectAllDistanceGrabInteractor(ISelector selector, DistantCandidateComputer< DistanceGrabInteractor, DistanceGrabInteractable > distantCandidateComputer)
Returns
void
InjectDistantCandidateComputer ( distantCandidateComputer )
Adds a <cref="DistantCandidateComputer"/> to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractor.InjectDistantCandidateComputer(DistantCandidateComputer< DistanceGrabInteractor, DistanceGrabInteractable > distantCandidateComputer)
Returns
void
InjectOptionalGrabCenter ( grabCenter )
Adds a grab center to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractor.InjectOptionalGrabCenter(Transform grabCenter)
Parameters
grabCenter: Transform
Returns
void
InjectOptionalGrabTarget ( grabTarget )
Adds a grab target to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractor.InjectOptionalGrabTarget(Transform grabTarget)
Parameters
grabTarget: Transform
Returns
void
InjectOptionalVelocityCalculator ( velocityCalculator )
Adds a <cref="IThrowVelocityCalculator"/> to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractor.InjectOptionalVelocityCalculator(IThrowVelocityCalculator velocityCalculator)
Parameters
velocityCalculator: IThrowVelocityCalculator
Returns
void
InjectSelector ( selector )
Adds an <cref="ISelector"/> to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractor.InjectSelector(ISelector selector)
Parameters
selector: ISelector
Returns
void