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

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

    Show / Hide Table of Contents

    Class ConstraintTests

    Inheritance
    Object
    ConstraintTests
    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 ConstraintTests

    Methods

    CombinedConstraintFarNear()

    Tests that different constraints can apply for near and far manipulation

    Declaration
    public IEnumerator CombinedConstraintFarNear()
    Returns
    Type Description
    IEnumerator

    ConstrainByNumberOfHands()

    Tests that different constraints can apply for one handed and two handed manipulation

    Declaration
    public IEnumerator ConstrainByNumberOfHands()
    Returns
    Type Description
    IEnumerator

    ConstrainMovementAxisLocalSpace()

    Tests that the MoveAxisConstraint works for various axes. This test uses local space axes.

    Declaration
    public IEnumerator ConstrainMovementAxisLocalSpace()
    Returns
    Type Description
    IEnumerator

    ConstrainMovementAxisWorldSpace()

    Tests that the MoveAxisConstraint works for various axes. This test uses world space axes.

    Declaration
    public IEnumerator ConstrainMovementAxisWorldSpace()
    Returns
    Type Description
    IEnumerator

    ConstrainMovementFixedDistance()

    Tests that the FixedDistanceConstraint keeps the manipulated object at a fixed distance from the constraint object (camera)

    Declaration
    public IEnumerator ConstrainMovementFixedDistance()
    Returns
    Type Description
    IEnumerator

    ConstrainRotationAxisLocalSpace()

    Tests that the RotationAxisConstraint works for various axes. This test uses local space axes.

    Declaration
    public IEnumerator ConstrainRotationAxisLocalSpace()
    Returns
    Type Description
    IEnumerator

    ConstrainRotationAxisWorldSpace()

    Tests that the RotationAxisConstraint works for various axes. This test uses world space axes.

    Declaration
    public IEnumerator ConstrainRotationAxisWorldSpace()
    Returns
    Type Description
    IEnumerator

    ConstrainRotationFaceUser()

    Tests that FaceUserConstraint updates the rotation to face the user

    Declaration
    public IEnumerator ConstrainRotationFaceUser()
    Returns
    Type Description
    IEnumerator

    ConstrainRotationFixToUser()

    Tests FixedRotationToUserConstraint MaintainRotationToUser should only align with user / camera on x / y and not apply rotations in z

    Declaration
    public IEnumerator ConstrainRotationFixToUser()
    Returns
    Type Description
    IEnumerator
    Remarks

    No roll is introduced by the constraint, so the roll is zeroed out of the expected resultant rotation.

    ConstrainRotationFixToWorld()

    Tests that FixedRotationToWorldConstraint maintains the original rotation of the manipulated object

    Declaration
    public IEnumerator ConstrainRotationFixToWorld()
    Returns
    Type Description
    IEnumerator

    ConstrainScaleApparentSize()

    Tests that the MaintainApparentSizeConstraint maintains the angle between opposite corners on the cube

    Declaration
    public IEnumerator ConstrainScaleApparentSize()
    Returns
    Type Description
    IEnumerator

    ConstrainScaleMinMax()

    This tests the minimum and maximum scaling for manipulation. This test will scale a cube with two hand manipulation and ensure that maximum and minimum scales are not exceeded.

    Declaration
    public IEnumerator ConstrainScaleMinMax()
    Returns
    Type Description
    IEnumerator

    ConstraintManagerFilter()

    Test that verifies manual filtering of constraint in constraint manager. First, auto mode is confirmed by attaching a rotation and scale constraint. Then, manual constraint filtering is activated and only the scale constraint is added. In the later test case the object should not apply the rotation constraint.

    Declaration
    public IEnumerator ConstraintManagerFilter()
    Returns
    Type Description
    IEnumerator

    MultipleConstraintManagers()

    Test that verifies multiple constraint managers with different setup can be used on the same game object. First default constraint manager creation with auto mode is confirmed by attaching a rotation and scale constraint. Then manual constraint filtering is activated on a second constraint manager and only the scale constraint is added. In the later test case the object should not apply the rotation constraint.

    Declaration
    public IEnumerator MultipleConstraintManagers()
    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