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

HandRootOffset Class

Extends MonoBehaviour
This component positions its transform relative to the root (wrist) joint of an IHand.
Offset and mirroring capabilities are provided, otherwise the transform pose will match that of the hand wrist root.

Properties

The IHand that provides the wrist joint used by this component.
When the attached hand's IHand.Handedness is set to Handedness.Left, this property will mirror the offsets.
This allows for offset values to be set in Right hand coordinates for both Left and Right hands.
When set, rotation about the X axis will be ignored.
When set, rotation about the Y axis will be ignored.
When set, rotation about the Z axis will be ignored.
The driven transform will be offset by this positional value relative to the Hand's wrist
The driven transform will be offset by this rotational value relative to the Hand's wrist
bool MirrorLeftRotation[Get]

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )

Member Functions

Applies the position offset Offset and the rotation offset Rotation to the provided Pose
Applies the position offset Offset and the rotation offset Rotation to the provided Pose for a given Handedness and hand scale factor.
Retrieve the world space Pose of this transform.
Injects all required dependencies for a dynamically instantiated HandRootOffset.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets the underlying IHand for a dynamically instantiated HandRootOffset.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
void InjectOffset
( Vector3 offset )
void InjectRotation
( Quaternion rotation )
void InjectAllHandWristOffset
( IHand hand,
Vector3 offset,
Quaternion rotation )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon