HandPosing
A tool for quickly authoring hand poses to objects in VR using hand-tracking
HandPosing.HandPose Struct Reference

Data for the pose of a hand in space. More...

Public Member Functions

Pose ToPose (Transform relativeTo)
 Gets the offset of the hand in relation to another transform. More...
 
HandPose AdjustPose (Pose pose, Transform relativeTo)
 Moves the hand so the grip alligns with a point in space. Note that this method moves the entire hand but does not modify the fingers. More...
 

Static Public Member Functions

static ? HandPose Lerp (HandPose from, HandPose to, float t)
 Interpolates between two HandPoses, if they have the same handeness and bones. More...
 

Public Attributes

Pose relativeGrip
 Relative position/rotation of the grip point of the hand. More...
 
Handeness handeness
 Handeness of the hand. More...
 

Properties

List< BonePoseBones [get]
 Collection of bones and their rotations in this hand. More...
 

Detailed Description

Data for the pose of a hand in space.

Member Function Documentation

◆ AdjustPose()

HandPose HandPosing.HandPose.AdjustPose ( Pose  pose,
Transform  relativeTo 
)

Moves the hand so the grip alligns with a point in space. Note that this method moves the entire hand but does not modify the fingers.

Parameters
poseThe offset from the anchor transform at which to allign the grip of the hand.
relativeToThe anchor transform from which to measure the offset pose.
Returns
A copy of the HandPose propery alligned.

◆ Lerp()

static ? HandPose HandPosing.HandPose.Lerp ( HandPose  from,
HandPose  to,
float  t 
)
static

Interpolates between two HandPoses, if they have the same handeness and bones.

Parameters
fromBase HandPose to interpolate from.
toTarget HandPose to interpolate to.
tInterpolation factor, 0 for the base, 1 for the target.
Returns
A new HandPose positioned/rotated between the base and target, null if the hands cannot be interpolated.

◆ ToPose()

Pose HandPosing.HandPose.ToPose ( Transform  relativeTo)

Gets the offset of the hand in relation to another transform.

Parameters
relativeToThe transform from which to measure the offset.
Returns
A Pose indicating the offset.

Member Data Documentation

◆ handeness

Handeness HandPosing.HandPose.handeness

Handeness of the hand.

◆ relativeGrip

Pose HandPosing.HandPose.relativeGrip

Relative position/rotation of the grip point of the hand.

Property Documentation

◆ Bones

List<BonePose> HandPosing.HandPose.Bones
get

Collection of bones and their rotations in this hand.


The documentation for this struct was generated from the following file: