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

HandGrabUseInteractable Class

This interactable specifies the final pose a hand will have, via HandGrabPoints, when using the interactable, and also the rules to use it.
It also provides the relaxed and tigh HandGrabPoses to modify the visual hand depending on the progress of the interaction. By default, it will update the Progress of the interaction to the strength of usage, but it is possible to reference a IHandGrabUseDelegate to derive this calculation to a separate script.

Properties

IHandGrabUseDelegate HandUseDelegate[Get]
GrabbingRule UseFingers[Get]
float StrengthDeadzone[Get]
Value indicating the progress of the use interaction.
List< HandGrabPose > RelaxGrabPoints[Get]
List< HandGrabPose > TightGrabPoints[Get]
float UseStrengthDeadZone[Get]

Protected Functions

virtual void Reset ( )
virtual override void Awake ( )
override void SelectingInteractorAdded
( HandGrabUseInteractor interactor )
override void SelectingInteractorRemoved
( HandGrabUseInteractor interactor )

Member Functions

float ComputeUseStrength
( float strength )
bool FindBestHandPoses
( float handScale,
ref HandPose relaxedHandPose,
ref HandPose tightHandPose,
out float score )
void InjectOptionalForwardUseDelegate
( IHandGrabUseDelegate useDelegate )
void InjectOptionalRelaxedHandGrabPoints
( List< HandGrabPose > relaxedHandGrabPoints )
void InjectOptionalTightHandGrabPoints
( List< HandGrabPose > tightHandGrabPoints )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon