enum | FindResult { } |
bool | UsesHandPose[Get] |
bool | SupportsHandedness ( Handedness handedness ) |
bool | FindBestPose ( in Pose userPose, in Pose offset, float handScale, Handedness handedness, PoseMeasureParameters scoringModifier, ref HandGrabResult result ) Finds the best valid hand-pose at this HandGrabInteractable. |
static bool | FindInterpolationRange ( float relativeHandScale, List< HandGrabPose > grabPoses, out HandGrabPose from, out HandGrabPose to, out float t ) Finds the two nearest HandGrabPose to interpolate from given a scale. |
NotFound | |
NotCompatible | |
Found |
bool Oculus.Interaction.HandGrab.GrabPoseFinder.UsesHandPose |
---|
No description available.
|
Oculus.Interaction.HandGrab.GrabPoseFinder.GrabPoseFinder ( List< HandGrabPose > handGrabPoses, Transform relativeTo ) |
---|
No description available.
|
bool Oculus.Interaction.HandGrab.GrabPoseFinder.SupportsHandedness ( Handedness handedness ) |
---|
No description available.
|
bool Oculus.Interaction.HandGrab.GrabPoseFinder.FindBestPose ( in Pose userPose, in Pose offset, float handScale, Handedness handedness, PoseMeasureParameters scoringModifier, ref HandGrabResult result ) |
---|
Finds the best valid hand-pose at this HandGrabInteractable. Remember that a HandGrabPoses can actually have a whole surface the user can snap to. Parameters userPose Pose to compare to the snap point in world coordinates. offsetOffset from the Pose for accurate scoring handScaleThe scale of the tracked hand. handednessThe handedness of the tracked hand. scoringModifierParameters indicating how to score the different poses. resultThe resultant best pose found. Returns True if a good pose was found |
static bool Oculus.Interaction.HandGrab.GrabPoseFinder.FindInterpolationRange ( float relativeHandScale, List< HandGrabPose > grabPoses, out HandGrabPose from, out HandGrabPose to, out float t ) |
---|
Finds the two nearest HandGrabPose to interpolate from given a scale. The result can require an unclamped interpolation (t can be bigger than 1 or smaller than 0). Parameters relativeHandScale The user scale relative to the target grabPosesThe list of grab poses to interpolate from fromThe HandGrabInteractable with nearest scale recorder that is smaller than the provided one toThe HandGrabInteractable with nearest scale recorder that is bigger than the provided one tThe progress between from and to variables at which the desired scale resides Returns The HandGrabPose near under and over the scale, and the interpolation factor between them. |