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

DistanceHandGrabInteractor Class

DistanceHandGrabInteractor lets you grab interactables at a distance with hands.
It operates with HandGrabPoses to specify the final pose of the hand and manipulate the objects via IMovements in order to attract them, use them at a distance, etc. The DistanceHandGrabInteractor uses a IDistantCandidateComputer to detect far-away objects.

Properties

IHand Hand[Get]
IThrowVelocityCalculator VelocityCalculator[Get]
IMovement Movement[Get]
bool MovementFinished[Get]
HandGrabTarget HandGrabTarget[Get]
Vector3 HitPoint[Get]
float FingersStrength[Get]
float WristStrength[Get]
Pose WristToGrabPoseOffset[Get]

Fields

Transform WristPoint[Get]
Transform PinchPoint[Get]
Transform PalmPoint[Get]
HandGrabAPI HandGrabApi[Get]
GrabTypeFlags SupportedGrabTypes[Get]
IHandGrabInteractable TargetInteractable[Get]
Pose Origin[Get]
IRelativeToRef DistanceInteractable[Get]
bool IsGrabbing[Get]

Member Functions

Returns the fingers that are grabbing the interactable.
override bool CanSelect
( DistanceHandGrabInteractable interactable )
Adds a <cref="DistanceHandGrabInteractor"/> to a dynamically instantiated GameObject.
Adds a <cref="HandGrabAPI"/> to a dynamically instantiated GameObject.
Adds a <cref="DistantCandidateComputer"/> to a dynamically instantiated GameObject.
Adds an <cref="IHand"/> to a dynamically instantiated GameObject.
Adds a list of supported grabs to a dynamically instantiated GameObject.
Adds a grab origin to a dynamically instantiated GameObject.
Adds a grip point to a dynamically instantiated GameObject.
Adds a pinch point to a dynamically instantiated GameObject.
Adds a <cref="IThrowVelocityCalculator"/> to a dynamically instantiated GameObject.

Protected Functions

virtual void Reset ( )
override void Awake ( )
override void Start ( )
override void DoHoverUpdate ( )
override void InteractableSet
( DistanceHandGrabInteractable interactable )
override void InteractableUnset
( DistanceHandGrabInteractable interactable )
override void DoSelectUpdate ( )
override void InteractableSelected
( DistanceHandGrabInteractable interactable )
override void InteractableUnselected
( DistanceHandGrabInteractable interactable )
virtual override void HandlePointerEventRaised
( PointerEvent evt )
virtual override Pose ComputePointerPose ( )
override bool ComputeShouldSelect ( )
override bool ComputeShouldUnselect ( )
override DistanceHandGrabInteractable ComputeCandidate ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon