MixedRealityToolkit-Unity
MixedRealityToolkit-Unity copied to clipboard
[MRTK3] More spatial manipulation constraints
Overview
Add Rotation Axis Constraint and Min Max Move Constraint to Mixed Reality Toolkit 3
Changes
- Add: RotationAxisConstraint.cs;
- Add: RotationAxisConstraint.cs.meta;
- Add: MinMaxMoveConstraint.cs;
- Add: MinMaxMoveConstraint.cs.meta;
- Add: ConstraintsExamples.unity;
- Add: ConstraintsExamples.unity.meta;
Hey @chrystianfarias! Thanks for opening this! Is there a unit test that can be brought over as well?
Hey @chrystianfarias! Thanks for opening this! Is there a unit test that can be brought over as well?
Not at the moment, I shared it because I was needing it for a project and I didn't have it in MRTK3 yet.
Taking advantage, I would like to show a new constraint: MinMaxMoveConstraint. It allows to block the movement through minimum and maximum coordinates, it can be used local and global coordinates depending on the selected configuration.
Along with this commit is an example scene UnityProjects/MRTKDevTemplate/Assets/Scenes/ConstraintsExamples.unity that can be updated later with the other constraints.

Super sorry we passed over this PR! We ended up porting over all of the remaining constraints in #11085, and are looking to create a new API for constraints and solvers in MRTK3.
Thanks for your contribution!