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

DistanceHandGrabInteractable Class

The DistanceHandGrabInteractable allows grabbing the marked object from far away.
Internally it uses HandGrabPoses to specify not only the poses of the hands but the required gestures to perform the grab. It is possible (and recommended) to reuse the same HandGrabPoses used by the HandGrabInteractable, and even select just a few so they become the default poses when distant grabbing.

Properties

Rigidbody Rigidbody[Get]
bool ResetGrabOnGrabsUpdated[Get]
float Slippiness[Get]
IMovementProvider MovementProvider[Get]
HandAlignType HandAlignment[Get]
General getter for the transform of the object this interactable refers to.
GrabTypeFlags SupportedGrabTypes[Get]
GrabbingRule PinchGrabRules[Get]
GrabbingRule PalmGrabRules[Get]
List< HandGrabPose > HandGrabPoses[Get]
Collider[] Colliders[Get]
bool UsesHandPose[Get]

Protected Functions

virtual void Reset ( )
override void Awake ( )
override void Start ( )

Member Functions

IMovement GenerateMovement
( in Pose from,
in Pose to )
void ApplyVelocities
( Vector3 linearVelocity,
Vector3 angularVelocity )
bool CalculateBestPose
( Pose userPose,
float handScale,
Handedness handedness,
ref HandGrabResult result )
void CalculateBestPose
( in Pose userPose,
in Pose offset,
Transform relativeTo,
float handScale,
Handedness handedness,
ref HandGrabResult result )
bool SupportsHandedness
( Handedness handedness )
void InjectAllDistanceHandGrabInteractable
( GrabTypeFlags supportedGrabTypes,
Rigidbody rigidbody,
GrabbingRule pinchGrabRules,
GrabbingRule palmGrabRules )
void InjectOptionalPhysicsGrabbable
( PhysicsGrabbable physicsObject )
void InjectSupportedGrabTypes
( GrabTypeFlags supportedGrabTypes )
void InjectPinchGrabRules
( GrabbingRule pinchGrabRules )
void InjectPalmGrabRules
( GrabbingRule palmGrabRules )
void InjectRigidbody
( Rigidbody rigidbody )
void InjectOptionalHandGrabPoses
( List< HandGrabPose > handGrabPoses )
void InjectOptionalMovementProvider
( IMovementProvider provider )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon