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

IDistanceInteractor Interface

Interface for Objects that can be interacted with IDistanceInteractable.
contains attributes for the origin of the grab, the point of the grab and the a reference to the interactable object.

Properties

Used to retrieves the pose (position and orientation) from which distance grabbing is calculated.
This value comes from the DistantCandidateComputer, but conceptually it is a point relative to the hand around which it feels natural for the hand to grab.
The point in space from which the interactor is considered to have "hit" its current interactable.
Similar to RayInteractor.CollisionInfo, though the it is not the result of a simple raycast and instead results from calculations in the DistantCandidateComputer<TInteractor, TInteractable>. This provides a precise location for interaction caculations.
The main Transform of the currently selected DistanceGrabInteractable.
This property links back to the interactable object that is currently being manipulated by the user, allowing for continued interaction. Can be null if there is no object being interacted with.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon