mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class TwoHandMoveLogic

    Implements a movement logic that uses the model of angular rotations along a sphere whose radius varies. The angle to move by is computed by looking at how much the hand changes relative to a pivot point (slightly below and in front of the head).

    Usage: When a manipulation starts, call Setup. Call Update any time to update the move logic and get a new rotation for the object.

    Inheritance
    Object
    TwoHandMoveLogic
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Physics
    Assembly: cs.temp.dll.dll
    Syntax
    public class TwoHandMoveLogic

    Methods

    Setup(MixedRealityPose, Vector3, MixedRealityPose, Vector3)

    Setup function

    Declaration
    public void Setup(MixedRealityPose pointerCentroidPose, Vector3 grabCentroid, MixedRealityPose objectPose, Vector3 objectScale)
    Parameters
    Type Name Description
    MixedRealityPose pointerCentroidPose
    Vector3 grabCentroid
    MixedRealityPose objectPose
    Vector3 objectScale

    Update(MixedRealityPose, Quaternion, Vector3, Boolean, MovementConstraintType)

    Update the rotation based on input.

    Declaration
    public Vector3 Update(MixedRealityPose pointerCentroidPose, Quaternion objectRotation, Vector3 objectScale, bool usePointerRotation, MovementConstraintType movementConstraint)
    Parameters
    Type Name Description
    MixedRealityPose pointerCentroidPose
    Quaternion objectRotation
    Vector3 objectScale
    Boolean usePointerRotation
    MovementConstraintType movementConstraint
    Returns
    Type Description
    Vector3

    A Vector3 describing the desired position

    In This Article
    • Methods
      • Setup(MixedRealityPose, Vector3, MixedRealityPose, Vector3)
      • Update(MixedRealityPose, Quaternion, Vector3, Boolean, MovementConstraintType)
    Back to top Generated by DocFX