Class ConstraintTests
Inherited Members
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 |
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 |
Setup()
Declaration
public void Setup()
TearDown()
Declaration
public void TearDown()