API reference

IHandGrabState Interface

Interface for interactors that allow aligning to an object.
Contains information to drive the HandGrabVisual moving the fingers and wrist.

Properties

FingersStrength : float
[Get]
Signature
float Oculus.Interaction.HandGrab.IHandGrabState.FingersStrength
HandGrabTarget : HandGrabTarget
[Get]
Signature
HandGrabTarget Oculus.Interaction.HandGrab.IHandGrabState.HandGrabTarget
IsGrabbing : bool
[Get]
Signature
bool Oculus.Interaction.HandGrab.IHandGrabState.IsGrabbing
WristStrength : float
[Get]
Signature
float Oculus.Interaction.HandGrab.IHandGrabState.WristStrength
WristToGrabPoseOffset : Pose
[Get]
Signature
Pose Oculus.Interaction.HandGrab.IHandGrabState.WristToGrabPoseOffset

Methods

GrabbingFingers ()
Returns a bit mask representing the fingers that are currently grabbing the interactable.
Note that, because the returned value is a bit mask, it should not be checked directly against enum values as it may not appear in the enum at all. Instead, bitwise operations should be used to check for the presence of enum values within the mask: i.e., (mask & <see cref="HandFingerFlags.Thumb"/>) != 0.
Signature
HandFingerFlags Oculus.Interaction.HandGrab.IHandGrabState.GrabbingFingers()
Returns
HandFingerFlags