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

TouchHandGrabInteractor Class

TouchHandGrabInteractor provides a hand-specific grab interaction model where selection begins when finger tips overlap with an associated interactable.
Upon selection, the distance between the fingers and thumb is cached and is used for determining the point of release: when fingers are outside of the cached distance.

Properties

IHand Hand[Get]
IHand OpenHand[Get]
Vector3 GrabPosition[Get]
Quaternion GrabRotation[Get]

Protected Fields

IHandSphereMap HandSphereMap[Get]
IActiveState GrabPrerequisite[Get]

Events

Action WhenFingerLocked

Member Functions

Sets a function that returns the current time in seconds.
bool IsFingerLocked
( HandFinger finger )
Pose[] GetFingerJoints
( HandFinger finger )
override void Unselect ( )
void InjectAllTouchHandGrabInteractor
( IHand hand,
IHand openHand,
IHandSphereMap handSphereMap,
Transform hoverLocation,
Transform grabLocation )
void InjectHand
( IHand hand )
void InjectOpenHand
( IHand openHand )
void InjectHandSphereMap
( IHandSphereMap handSphereMap )
void InjectHoverLocation
( Transform hoverLocation )
void InjectGrabLocation
( Transform grabLocation )
void InjectOptionalGrabPrerequisite
( IActiveState grabPrerequisite )
void InjectOptionalMinHoverDistance
( float minHoverDistance )
void InjectOptionalCurlDeltaThreshold
( float threshold )
void InjectOptionalCurlTimeThreshold
( float seconds )
void InjectOptionalIterations
( int iterations )
void InjectOptionalTimeProvider
( Func< float > timeProvider )

Protected Functions

override void Awake ( )
override void Start ( )
override void DoPreprocess ( )
override void DoPostprocess ( )
override bool ComputeShouldSelect ( )
override bool ComputeShouldUnselect ( )
override void DoHoverUpdate ( )
override void DoSelectUpdate ( )
override TouchHandGrabInteractable ComputeCandidate ( )
virtual override Pose ComputePointerPose ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon