delegate Pose |
static GrabPoseScore | CalculateBestPoseAtSurface ( in Pose desiredPose, in Pose offset, out Pose bestPose, in PoseMeasureParameters scoringModifier, Transform relativeTo, PoseCalculator minimalTranslationPoseCalculator, PoseCalculator minimalRotationPoseCalculator ) Finds the best pose comparing the one that requires the minimum rotation and minimum translation. |
static Pose | SelectBestPose ( in Pose poseA, in Pose poseB, in Pose reference, in Pose offset, PoseMeasureParameters scoringModifier, out GrabPoseScore bestScore ) Compares two poses to a reference and returns the most similar one. |
static GrabPoseScore | Calculates the score from a point to a set of colliders. |
delegate Pose Oculus.Interaction.Grab.GrabPoseHelper.PoseCalculator ( in Pose desiredPose, Transform relativeTo ) |
---|
No description available.
|
static GrabPoseScore Oculus.Interaction.Grab.GrabPoseHelper.CalculateBestPoseAtSurface ( in Pose desiredPose, in Pose offset, out Pose bestPose, in PoseMeasureParameters scoringModifier, Transform relativeTo, PoseCalculator minimalTranslationPoseCalculator, PoseCalculator minimalRotationPoseCalculator ) |
---|
Finds the best pose comparing the one that requires the minimum rotation and minimum translation. Parameters desiredPose Root pose to measure from. offsetThe offset from the root for accurate scoring bestPoseNearest pose to the desired one at the hand grab pose. scoringModifierModifiers for the score based in rotation and distance. relativeToThe reference transform to apply the calculators to minimalTranslationPoseCalculatorDelegate to calculate the nearest, by position, pose at a hand grab pose. minimalRotationPoseCalculatorDelegate to calculate the nearest, by rotation, pose at a hand grab pose. Returns The score, normalized, of the best pose. |
static Pose Oculus.Interaction.Grab.GrabPoseHelper.SelectBestPose ( in Pose poseA, in Pose poseB, in Pose reference, in Pose offset, PoseMeasureParameters scoringModifier, out GrabPoseScore bestScore ) |
---|
Compares two poses to a reference and returns the most similar one. Parameters poseA First root Pose to compare with the reference. poseBSecond root Pose to compare with the reference. referenceReference pose to measure from. offsetThe offset from the roots, for accurate scoring scoringModifierModifiers for the score based in rotation and distance. bestScoreOut value with the score of the best pose. Returns The most similar pose to reference out of the poses |
static GrabPoseScore Oculus.Interaction.Grab.GrabPoseHelper.CollidersScore ( Vector3 position, Collider[] colliders, out Vector3 hitPoint ) |
---|
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 collidersGroup of colliders to measure the score hitPointOutput 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 |