Class ConstraintTests
Inheritance
ConstraintTests
Assembly: cs.temp.dll.dll
public class ConstraintTests
Methods
Tests that different constraints can apply for near and far manipulation
Declaration
public IEnumerator CombinedConstraintFarNear()
Returns
Type |
Description |
IEnumerator |
|
Tests that different constraints can apply for one handed and two handed manipulation
Declaration
public IEnumerator ConstrainByNumberOfHands()
Returns
Type |
Description |
IEnumerator |
|
Tests that the MoveAxisConstraint works for various axes.
This test uses local space axes.
Declaration
public IEnumerator ConstrainMovementAxisLocalSpace()
Returns
Type |
Description |
IEnumerator |
|
Tests that the MoveAxisConstraint works for various axes.
This test uses world space axes.
Declaration
public IEnumerator ConstrainMovementAxisWorldSpace()
Returns
Type |
Description |
IEnumerator |
|
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 |
|
Tests that the RotationAxisConstraint works for various axes.
This test uses local space axes.
Declaration
public IEnumerator ConstrainRotationAxisLocalSpace()
Returns
Type |
Description |
IEnumerator |
|
Tests that the RotationAxisConstraint works for various axes.
This test uses world space axes.
Declaration
public IEnumerator ConstrainRotationAxisWorldSpace()
Returns
Type |
Description |
IEnumerator |
|
Tests that FaceUserConstraint updates the rotation to face the user
Declaration
public IEnumerator ConstrainRotationFaceUser()
Returns
Type |
Description |
IEnumerator |
|
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 |
|
Tests that FixedRotationToWorldConstraint maintains the original rotation of the manipulated object
Declaration
public IEnumerator ConstrainRotationFixToWorld()
Returns
Type |
Description |
IEnumerator |
|
Tests that the MaintainApparentSizeConstraint maintains the angle between opposite
corners on the cube
Declaration
public IEnumerator ConstrainScaleApparentSize()
Returns
Type |
Description |
IEnumerator |
|
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 |
|
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 |
|
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 |
|
Declaration
public IEnumerator SetUp()
Returns
Type |
Description |
IEnumerator |
|
Declaration
public IEnumerator TearDown()
Returns
Type |
Description |
IEnumerator |
|