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

HandPointerPose Class

Extends MonoBehaviour
Sets the origin of the ray used by RayInteractors for tracked hands.
RayInteractors themselves are agnostic to the origin of the ray, so they can work with any ray but cannot calculate that ray for themselves. HandPointerPose observes an IHand and uses it to compute a ray origin.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.HandPointerPose._started

Fields

Active : bool
Implements IActiveState.Active, in this case indicating whether or not a valid ray origin is currently available.
Signature
bool Oculus.Interaction.HandPointerPose.Active

Properties

Hand : IHand
[Get]
The IHand used for ray interaction.
This value is typically set in the UnityEditor, but it can also be set programmatically during initialization using either InjectAllHandPointerPose(IHand, Vector3) or InjectHand(IHand).
Signature
IHand Oculus.Interaction.HandPointerPose.Hand

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.HandPointerPose.Awake()
Returns
void
OnDisable ()
Signature
virtual void Oculus.Interaction.HandPointerPose.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.HandPointerPose.OnEnable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.HandPointerPose.Start()
Returns
void

Methods

InjectAllHandPointerPose ( hand , offset )
Sets all required dependencies for a dynamically instantiated HandPointerPose.
This is a convenience method wrapping InjectHand(IHand) and InjectOffset(Vector3). 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.HandPointerPose.InjectAllHandPointerPose(IHand hand, Vector3 offset)
Parameters
hand: IHand
offset: Vector3
Returns
void
InjectHand ( hand )
Sets the an IHand as the Hand for a dynamically instantiated HandPointerPose.
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.HandPointerPose.InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectOffset ( offset )
Sets a Unity Vector3 as the ray origin offset for a dynamically instantiated HandPointerPose.
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.HandPointerPose.InjectOffset(Vector3 offset)
Parameters
offset: Vector3
Returns
void