HandJointUtils.TryGetJointPose Method

Definition

Overloads

TryGetJointPose(TrackedHandJoint, Handedness, MixedRealityPose)

Tries to get the pose of the requested joint for the first controller with the specified handedness.

TryGetJointPose<T>(TrackedHandJoint, Handedness, MixedRealityPose)

Try to find the first matching hand controller of the given type and return the pose of the requested joint for that hand.

TryGetJointPose(TrackedHandJoint, Handedness, MixedRealityPose)

Tries to get the pose of the requested joint for the first controller with the specified handedness.

C++
public:
 static bool TryGetJointPose(Microsoft::MixedReality::Toolkit::Utilities::TrackedHandJoint joint, Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, [Runtime::InteropServices::Out] Microsoft::MixedReality::Toolkit::Utilities::MixedRealityPose % pose);

Parameters

joint
TrackedHandJoint

The requested joint

handedness
Handedness

The specific hand of interest. This should be either Handedness.Left or Handedness.Right

pose
MixedRealityPose

The output pose data

Returns

Applies to

MRTK2 Unity 2018 2.7.0 et autres versions
Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0

TryGetJointPose<T>(TrackedHandJoint, Handedness, MixedRealityPose)

Try to find the first matching hand controller of the given type and return the pose of the requested joint for that hand.

C++
public:
generic <typename T>
 where T : class, Microsoft::MixedReality::Toolkit::Input::IMixedRealityHand static bool TryGetJointPose(Microsoft::MixedReality::Toolkit::Utilities::TrackedHandJoint joint, Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, [Runtime::InteropServices::Out] Microsoft::MixedReality::Toolkit::Utilities::MixedRealityPose % pose);

Type Parameters

T

Parameters

handedness
Handedness

Returns

Applies to

MRTK2 Unity 2018 2.7.0 et autres versions
Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0