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

GrabPoseFinder Class

Utility class used by the grab interactors to find the best matching pose from a provided list of HandGrabPoses in an object.

Member Enumerations

Enumeration FindResult

NotFound
No description available
NotCompatible
No description available
Found
No description available

Properties

bool UsesHandPose[Get]

Member Functions

GrabPoseFinder
( List< HandGrabPose > handGrabPoses,
Transform relativeTo )
bool SupportsHandedness
( Handedness handedness )
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.
offset
Offset from the Pose for accurate scoring
handScale
The scale of the tracked hand.
handedness
The handedness of the tracked hand.
scoringModifier
Parameters indicating how to score the different poses.
result
The resultant best pose found.
Returns
True if a good pose was found

Static Member Functions

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
grabPoses
The list of grab poses to interpolate from
from
The HandGrabInteractable with nearest scale recorder that is smaller than the provided one
to
The HandGrabInteractable with nearest scale recorder that is bigger than the provided one
t
The 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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon