日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class ObjectManipulatorTests

    Inheritance
    Object
    ObjectManipulatorTests
    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.Tests
    Assembly: cs.temp.dll.dll
    Syntax
    public class ObjectManipulatorTests

    Methods

    CursorContextObjectManipulatorMove()

    TODO: This test should move into base cursor tests once object manipulator graduates Tests the Cursor context object manipulator - makes sure cursor context is shown when an object is manipulated by object manipulator

    Declaration
    public IEnumerator CursorContextObjectManipulatorMove()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorDisableObject()

    Ensure that while manipulating an object, if that object gets deactivated, that manipulation no longer moves that object.

    Declaration
    public IEnumerator ObjectManipulatorDisableObject()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorEventsBothHands()

    Test that OnManipulationStarted and OnManipulationEnded events call as expected for One Handed and Two Handed.

    Declaration
    public IEnumerator ObjectManipulatorEventsBothHands()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorEventsEventsTwoHandedOnly()

    Test that OnManipulationStarted and OnManipulationEnded events call as expected for Two Handed Only.

    Declaration
    public IEnumerator ObjectManipulatorEventsEventsTwoHandedOnly()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorEventsOneHandedOnly()

    Test that OnManipulationStarted and OnManipulationEnded events call as expected for various One Handed Only.

    Declaration
    public IEnumerator ObjectManipulatorEventsOneHandedOnly()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorForceRelease()

    Test creates an object with ObjectManipulator verifies translation with articulated hand as well as forcefully ending of the manipulation from gaze provider.

    Declaration
    public IEnumerator ObjectManipulatorForceRelease()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorGazeCursorFocusLock()

    TODO: This test should move into base cursor tests once object manipulator graduates Tests that the gaze cursor stays centered lockCursorWhenFocusLocked is toggled off

    Declaration
    public IEnumerator ObjectManipulatorGazeCursorFocusLock()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorGazeHover()

    Test creating ObjectManipulator and receiving hover enter/exit events from gaze provider.

    Declaration
    public IEnumerator ObjectManipulatorGazeHover()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorInstantiate()

    Test creating adding a ObjectManipulator to GameObject programmatically. Should be able to run scene without getting any exceptions.

    Declaration
    public IEnumerator ObjectManipulatorInstantiate()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorMoveYAxisGGV()

    This test first moves the hand a set amount along the x-axis, records its x position, then moves it the same amount along the y-axis and records its y position. Given no constraints on manipulation, we expect these values to be the same. This test was added as a change to pointer behaviour made GGV manipulation along the y-axis sluggish.

    Declaration
    public IEnumerator ObjectManipulatorMoveYAxisGGV()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorOneHandMoveFar()

    This tests the one hand far movement while camera (character) is moving around. The test will check the offset between object pivot and grab point and make sure we're not drifting out of the object on pointer rotation - this test is the same for all objects that won't change their orientation to camera while camera / pointer rotates as this will modify the far interaction grab point

    Declaration
    public IEnumerator ObjectManipulatorOneHandMoveFar()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorOneHandMoveNear()

    This tests the one hand near movement while camera (character) is moving around. The test will check the offset between object pivot and grab point and make sure we're not drifting out of the object on pointer rotation - this test should be the same in all rotation setups

    Declaration
    public IEnumerator ObjectManipulatorOneHandMoveNear()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorOneHandRotateWithConstraint()

    This tests the one hand near rotation and applying different rotation constraints to the object.

    Declaration
    public IEnumerator ObjectManipulatorOneHandRotateWithConstraint()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorOriginOffset()

    This test records the poses and scales of an object after various forms of manipulation, once when the object origin is at the mesh centre and again when the origin is offset from the mesh. The test then compares these poses and scales in order to ensure that they are about equal.

    Declaration
    public IEnumerator ObjectManipulatorOriginOffset()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorPositionlessController()

    For positionless input sources that use gaze, such as xbox controller, pointer position will be coincident with the head position. This was causing issues with manipulation handler, as the distance between the pointer and the head is taken as part of the move logic. This test simulates a positionless input source by using GGV hands and setting the hand position to be the head position. It then ensures that there is no weird behaviour as a result of this.

    Declaration
    public IEnumerator ObjectManipulatorPositionlessController()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorRigidbodyCollision()

    Test that objects with both ObjectManipulator and Rigidbody respond correctly to rigidbody colliders.

    Declaration
    public IEnumerator ObjectManipulatorRigidbodyCollision()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorRotateAboutObjectCenter()

    Ensure that a manipulated object has the same rotation as the hand when RotateAboutObjectCenter is used

    Declaration
    public IEnumerator ObjectManipulatorRotateAboutObjectCenter()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorRotateHeadGGV()

    This test rotates the head without moving the hand. This test is set up to test using the Gestures input simulation mode as this is where we observed issues with this. If the head rotates, without moving the hand, the grabbed object should not move.

    Declaration
    public IEnumerator ObjectManipulatorRotateHeadGGV()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorStaticCollision()

    Test that objects with both ObjectManipulator and Rigidbody respond correctly to static colliders.

    Declaration
    public IEnumerator ObjectManipulatorStaticCollision()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorThrow()

    Test validates throw behavior on manipulation handler. Box with disabled gravity should travel a certain distance when being released from grab during hand movement

    Declaration
    public IEnumerator ObjectManipulatorThrow()
    Returns
    Type Description
    IEnumerator

    ObjectManipulatorTwoHandedCentroid()

    Test that the grab centroid is calculated correctly while rotating the hands during a two-hand near interaction grab.

    Declaration
    public IEnumerator ObjectManipulatorTwoHandedCentroid()
    Returns
    Type Description
    IEnumerator

    Setup()

    Declaration
    public IEnumerator Setup()
    Returns
    Type Description
    IEnumerator

    TearDown()

    Declaration
    public IEnumerator TearDown()
    Returns
    Type Description
    IEnumerator
    Back to top Generated by DocFX