API reference

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

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

Protected Functions

override void Awake ( )
override void Start ( )
override void DoPreprocess ( )
override DistanceGrabInteractable ComputeCandidate ( )
override void InteractableSelected
( DistanceGrabInteractable interactable )
override void InteractableUnselected
( DistanceGrabInteractable interactable )
virtual override Pose ComputePointerPose ( )
override void DoSelectUpdate ( )

Member Functions

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