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

TouchHandGrabInteractable Class

Provides a hand-specific, collisions-based, grab interaction model (distinct from HandGrab.HandGrabInteractor's spatial hueristic approach) where selection begins when finger tips overlap with an associated interactable.
This interaction mode simulates the physicality of grabbing a real-world object with the fingertips.

Fields

ColliderGroup : ColliderGroup
Retrieves the Interaction.ColliderGroup associated with this interactable.
TouchHandGrabInteractables can require multiple Colliders in order to effectively characterize the grabbable shape, particularly for complex models, so a group is used to aggregate them.
Signature
ColliderGroup Oculus.Interaction.TouchHandGrabInteractable.ColliderGroup

Protected Methods

Start ()
Signature
override void Oculus.Interaction.TouchHandGrabInteractable.Start()
Returns
override void

Methods

InjectAllTouchHandGrabInteractable ( boundsCollider , colliders )
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.TouchHandGrabInteractable.InjectAllTouchHandGrabInteractable(Collider boundsCollider, List< Collider > colliders)
Parameters
boundsCollider: Collider
colliders: List< Collider >
Returns
void
InjectBoundsCollider ( boundsCollider )
Sets a Unity Collider as the bounds collider for a dynamically instantiated TouchHandGrabInteractable.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.TouchHandGrabInteractable.InjectBoundsCollider(Collider boundsCollider)
Parameters
boundsCollider: Collider
Returns
void
InjectColliders ( colliders )
Sets the list of Unity Colliders to be made into an Interaction.ColliderGroup of a dynamically instantiated TouchHandGrabInteractable.
Because ColliderGroup is instantiated from this list in Unity's Start() method, this must be called before the MonoBehaviour lifecycle initializes this instance; otherwise, the provided colliders will be ignored. This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.TouchHandGrabInteractable.InjectColliders(List< Collider > colliders)
Parameters
colliders: List< Collider >
Returns
void