|
HandPosing
A tool for quickly authoring hand poses to objects in VR using hand-tracking
|
A merge between a HandPose and the score indicating how good it is for snapping an object. More...
Public Member Functions | |
| ScoredHandPose (HandPose pose, float score, SnapDirection direction) | |
| Default constructor. More... | |
Static Public Member Functions | |
| static ScoredHandPose | Null () |
| Default empty ScoredHandPose. More... | |
| static bool | IsNull (ScoredHandPose pose) |
| Check if the given ScoredHandPose is valid. More... | |
| static ? ScoredHandPose | Lerp (ScoredHandPose from, ScoredHandPose to, float t) |
| Interpolate between two ScoredHandPose. Both ScoredHandPoses must have the same direction. This method does not only moves the hands, but also adjusts the score linearly. More... | |
Properties | |
| HandPose | Pose [get] |
| The HandPose beign scored. More... | |
| SnapDirection | Direction [get] |
| The direction in which the snap is happening. More... | |
| float | Score [get] |
| The score of the snap. -1 for an invalid pose 0 for a bad snapping (too far away) 1 for a perfect snapping. More... | |
A merge between a HandPose and the score indicating how good it is for snapping an object.
| HandPosing.ScoredHandPose.ScoredHandPose | ( | HandPose | pose, |
| float | score, | ||
| SnapDirection | direction | ||
| ) |
Default constructor.
| pose | The HandPose to measure. |
| score | Score of the snap. |
| direction | Direction of the snap. |
|
static |
Check if the given ScoredHandPose is valid.
| pose | The ScoredHandPose to check. |
|
static |
Interpolate between two ScoredHandPose. Both ScoredHandPoses must have the same direction. This method does not only moves the hands, but also adjusts the score linearly.
| from | The base ScoredHandPose to interpolate from. |
| to | The target ScoredHandPose to interpolate to. |
| t | The interpolation factor, 0 for the base, 1 for the target value. |
|
static |
Default empty ScoredHandPose.
|
get |
The direction in which the snap is happening.
|
get |
The score of the snap. -1 for an invalid pose 0 for a bad snapping (too far away) 1 for a perfect snapping.