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

GrabPoseHelper Class

Member Functions

delegate Pose PoseCalculator
( in Pose desiredPose,
Transform relativeTo )

Static Member Functions

Finds the best pose comparing the one that requires the minimum rotation and minimum translation.
Parameters
desiredPose
Root pose to measure from.
offset
The offset from the root for accurate scoring
bestPose
Nearest pose to the desired one at the hand grab pose.
scoringModifier
Modifiers for the score based in rotation and distance.
relativeTo
The reference transform to apply the calculators to
minimalTranslationPoseCalculator
Delegate to calculate the nearest, by position, pose at a hand grab pose.
minimalRotationPoseCalculator
Delegate to calculate the nearest, by rotation, pose at a hand grab pose.
Returns
The score, normalized, of the best pose.
Compares two poses to a reference and returns the most similar one
Parameters
poseA
First root Pose to compare with the reference.
poseB
Second root Pose to compare with the reference.
reference
Reference pose to measure from.
offset
The offset from the roots, for accurate scoring
scoringModifier
Modifiers for the score based in rotation and distance.
bestScore
Out value with the score of the best pose.
Returns
The most similar pose to reference out of the poses
Calculates the score from a point to a set of colliders.
When the point is outside the colliders the further from their surface means the lower the score. When the point is inside any of the colliders the score is always higher.
Parameters
position
Position to measure against the colliders
colliders
Group of colliders to measure the score
hitPoint
Output point in the surface or inside the colliders that is near the position
Returns
A GrabPoseScore value containing the score of the position in reference to the colliders
Did you find this page helpful?
Thumbs up icon
Thumbs down icon